So if I am inside a non-suspend function (that was...
# coroutines
v
So if I am inside a non-suspend function (that was invoked by suspend fun) how can I access coroutineContext without adding suspend to signature of function
f
coroutineScope { ... }
?
v
that too can be used only inside suspend function
l
@v0ldem0rt Why don't you make it suspend?
v
that method is simple calculation method, does no IO (think JWT token decoder). It makes no design sense to make it suspended.
l
@v0ldem0rt suspend is not just for I/O.
g
You cannot, just make it suspend