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
Fatih
04/09/2019, 4:57 PM
coroutineScope { ... }
?
v
v0ldem0rt
04/09/2019, 5:08 PM
that too can be used only inside suspend function
l
louiscad
04/09/2019, 6:23 PM
@v0ldem0rt Why don't you make it suspend?
v
v0ldem0rt
04/09/2019, 7:19 PM
that method is simple calculation method, does no IO (think JWT token decoder). It makes no design sense to make it suspended.