Paul Woitaschek
11/06/2018, 12:23 PMCoroutineContext when it's defined as the receiver on a supsending function inside a class?Zach Klippenstein (he/him) [MOD]
11/06/2018, 6:07 PMCoroutineContext as a receiver is odd, normally CoroutineScope is used as a receiver type.
2. Suspending functions shouldn’t have CoroutineScope receivers. If they need access to the current scope they should use the coroutineScope function. If you want to make it possible to add additional context, pass a CoroutineContext as a normal argument to your method (that’s how all the standard builders like launch, async, etc work).Paul Woitaschek
11/06/2018, 6:38 PMCoroutineContext, thanks.Paul Woitaschek
11/06/2018, 6:39 PM