tripkit-android / com.skedgo.tripkit.ui.utils / MainThreadBus

MainThreadBus

open class MainThreadBus : Bus

A custom `[Bus`](#) that posts events from any thread and lets subscribers receive them on the main thread.

Constructors

Name Summary
<init> MainThreadBus(errorHandler: Consumer<Throwable!>!)

Functions

Name Summary
post Posts an event and expects to handle it on the main thread.fun post(event:Any!):Unit