HubClientCoroutineContextStrategy
interface HubClientCoroutineContextStrategy
Defines a strategy for bridging non-blocking with blocking code.
Inheritors
Functions
Link copied to clipboard
fun <T> HubClientCoroutineContextStrategy.runBlockingWithContext(block: suspend CoroutineScope.() -> T): T
Runs a new coroutine in HubClientCoroutineContextStrategy.clientCoroutineContext context and blocks the current thread until its completion. This function should not be used from a coroutine.
Properties
Link copied to clipboard
The hubClient's-coroutine-context. It can be used to explicit define in which CoroutineContext the new client will run.