Join Slack
Powered by
If I know my block will execute in the same corout...
# coroutines
h
Herko
02/22/2019, 11:53 AM
If I know my block will execute in the same coroutine context, how can I achieve the above by passing something into the block?
Suspension_functions_can_be_called_only_within_coroutine_body.kt
u
uli
02/22/2019, 11:56 AM
Explicitly type
block
as suspending lambda
t
trathschlag
02/22/2019, 11:57 AM
and there is
val block = suspend { ...
3
Views
Open in Slack
Previous
Next