is suspend function return flow<SpecificObject&...
# touchlab-tools
l
is suspend function return flow<SpecificObject> cannot use map{ } ? to directly get SpecificObject. but when i remove suspend , it's ok
f
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
thanks
s
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
yes, i already do this, problem solved, thanks