https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

rrva

01/31/2019, 8:25 PM
can I write a function, that could be used both in a coroutine context, and outside of a coroutine context, with a single signature, perhaps using an optional
Continuation
parameter?
e

elizarov

02/01/2019, 8:19 AM
Only
inline
higher-order functions can do that, but if you need a
Continuation
, then it will have to be a suspending function.
2 Views