Join Slack
Communities
Powered by
is suspend function return flow<SpecificObject&...
# touchlab-tools
l
lemon
05/20/2024, 6:02 AM
is suspend function return flow<SpecificObject> cannot use map{ } ? to directly get SpecificObject. but when i remove suspend , it's ok
f
Filip Dolník
05/20/2024, 6:04 AM
Suspend functions that return Flows are currently not supported. A possible workaround is to use the converters provided by SKIE to convert (
https://skie.touchlab.co/features/flows#unsupported-automatic-conversions
)
l
lemon
05/20/2024, 6:14 AM
thanks
s
Stylianos Gakis
05/20/2024, 7:46 AM
suspend functions that return flows are anyway not something that usually makes a lot of sense. You can more often than not just make it a non-suspend function returning a flow instead.
👍 4
l
lemon
05/21/2024, 2:55 AM
yes, i already do this, problem solved, thanks
3
Views
Open in Slack
Previous
Next