We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RxExecutor.launch
suspend
1 parent ea78567 commit 1ae4006Copy full SHA for 1ae4006
src/main/java/com/diffplug/common/rx/RxExecutor.kt
@@ -36,6 +36,9 @@ import kotlinx.coroutines.launch
36
class RxExecutor internal constructor(val executor: Executor, val dispatcher: CoroutineDispatcher) :
37
RxSubscriber {
38
39
+ fun launch(block: suspend CoroutineScope.() -> Unit): Job =
40
+ CoroutineScope(Job() + dispatcher).launch(block = block)
41
+
42
interface Has : Executor {
43
val rxExecutor: RxExecutor
44
}
0 commit comments