Maciek
05/18/2020, 6:04 AMRestricted suspending functions can only invoke member or extension suspending functions on their restricted coroutine scope
when trying to run suspending function inside Option.fx {}
lambda. Option itself is also in suspending function. Can't really wrap my head around why compiler doesn't allow me to run my suspending function in Option.fx {}
suspending lambdasimon.vergauwen
05/18/2020, 7:37 AMfx
implementation, which also uses suspend
to rewrite to flatMap
operations. We’ve found a solution to fix this, and we’ll be brining it into Arrow Core very soon 🙂simon.vergauwen
05/18/2020, 7:38 AMsuspend
and EmptyCoroutineContext
an example from the standard library would be sequenceBuilder
. We took a similar approach, but this doesn’t allow for you to call suspending functions inside of it… It took us a while to figure out a good solution that solves that.Maciek
05/18/2020, 7:40 AM