Companion

object Companion

Functions

Link copied to clipboard
@JvmName(name = "createWithHandler")
fun createWithHandler(exceptionHandler: Consumer<Throwable>): EventBus

Creates a new EventBus with a custom exception handler.

@JvmName(name = "createWithHandler")
fun createWithHandler(asyncExecutor: Executor?, exceptionHandler: Consumer<Throwable>): EventBus

Creates a new EventBus with both an async executor and a custom exception handler.

Link copied to clipboard
@JvmName(name = "create")
operator fun invoke(): EventBus

Creates a new EventBus with the default error handler (Throwable::printStackTrace).

@JvmName(name = "create")
operator fun invoke(asyncExecutor: Executor?): EventBus

Creates a new EventBus with an async executor for async handler dispatch.

operator fun invoke(exceptionHandler: (Throwable) -> Unit): EventBus

Creates a new EventBus with a custom exception handler.

operator fun invoke(asyncExecutor: Executor?, exceptionHandler: (Throwable) -> Unit): EventBus

Creates a new EventBus with both an async executor and a custom exception handler.