Roman Elizarov
1 min readMar 1, 2019

--

Every function that launches a coroutine as its side-effect should be declared as an extension on CoroutineScope, just like all the built-in coroutine builders:

fun CoroutineScope.routeChat(): ResultType

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

Responses (2)