reactive/kotlinx-coroutines-rx2/src/RxSingle.kt [15:22]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public fun rxSingle( context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T ): Single { require(context[Job] === null) { "Single context cannot contain job in it." + "Its lifecycle should be managed via Disposable handle. Had $context" } return rxSingleInternal(GlobalScope, context, block) } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - reactive/kotlinx-coroutines-rx3/src/RxSingle.kt [15:22]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public fun rxSingle( context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> T ): Single { require(context[Job] === null) { "Single context cannot contain job in it." + "Its lifecycle should be managed via Disposable handle. Had $context" } return rxSingleInternal(GlobalScope, context, block) } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -