Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T : Event> EventBus.nextEventOrNull(timeout: Duration, priority: Int = Priority.NORMAL, crossinline predicate: (T) -> Boolean = { true }): T?
Suspends until the next event of type T matching predicate is posted, or until timeout elapses, whichever comes first.
Link copied to clipboard
suspend fun <T : Event> EventBus.postSuspend(event: T, context: CoroutineContext = EmptyCoroutineContext): T
Link copied to clipboard
inline fun <T : Event> EventBus.suspendHandler(priority: Int = Priority.NORMAL, behaviour: SuspendHandlerBehaviour = SuspendHandlerBehaviour.Parallel, scope: CoroutineScope? = null, crossinline handler: suspend (T) -> Unit): Subscription
inline fun <T : Event> TypedEventBus<in T>.suspendHandler(priority: Int = Priority.NORMAL, behaviour: SuspendHandlerBehaviour = SuspendHandlerBehaviour.Parallel, scope: CoroutineScope? = null, crossinline handler: suspend (T) -> Unit): Subscription