-
Is there any solution to the following error: Other than to rewrite the function that I'm calling as non-public so that it doesn't have to return an async return type? I'm calling a function that returns async Text, and assigning to a Text variable: decimal_to_bits returns async Text: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ok, I think best practice is to create normal non public functions that don't return async if you think the function might be useful elsewhere in your code. Then create a pub wrapper function around it if you think the same function will be called externally. |
Beta Was this translation helpful? Give feedback.
Ok, I think best practice is to create normal non public functions that don't return async if you think the function might be useful elsewhere in your code. Then create a pub wrapper function around it if you think the same function will be called externally.