Builder

class Builder<E, R>

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var config: FusClientConfig
Link copied to clipboard
var parentScope: CoroutineScope

The FusClient creates a child scope internally as a precaution to isolate crash behavior. Pass a different scope than the default if you want to use a dispatcher other than Dispatchers.default.

Functions

Link copied to clipboard
fun build(): FusClient<E, R>
Link copied to clipboard

Configures the FusClient components. Include defaultBusinessLogic from com.jetbrains.fus.reporting.defaults and the DFL functions displayed below.

Link copied to clipboard

Jump to the source of FusClientConfig.Builder for an explanation of the configuration options.

Link copied to clipboard
fun <T : Any> FusClient.Builder<*, *>.messageHandler(topic: Topic<T>, errorHandler: (Throwable) -> Unit = {}, handle: suspend (message: T) -> Unit)