reactive/kotlinx-coroutines-reactive/src/ContextInjector.kt (8 lines of code) (raw):

package kotlinx.coroutines.reactive import kotlinx.coroutines.InternalCoroutinesApi import org.reactivestreams.Publisher import kotlin.coroutines.CoroutineContext /** @suppress */ @InternalCoroutinesApi public interface ContextInjector { /** * Injects `ReactorContext` element from the given context into the `SubscriberContext` of the publisher. * This API used as an indirection layer between `reactive` and `reactor` modules. */ public fun <T> injectCoroutineContext(publisher: Publisher<T>, coroutineContext: CoroutineContext): Publisher<T> }