Settings

data class Settings(sideEffectBufferSize: Int, idlingRegistry: IdlingResource, intentDispatcher: CoroutineDispatcher, exceptionHandler: CoroutineExceptionHandler?, repeatOnSubscribedStopTimeout: Long)

Represents additional settings to create the container with.

Constructors

Link copied to clipboard
fun Settings(sideEffectBufferSize: Int = Channel.UNLIMITED, idlingRegistry: IdlingResource = NoopIdlingResource(), intentDispatcher: CoroutineDispatcher = Dispatchers.Default, exceptionHandler: CoroutineExceptionHandler? = null, repeatOnSubscribedStopTimeout: Long = 100)

Properties

Link copied to clipboard
val exceptionHandler: CoroutineExceptionHandler? = null
Link copied to clipboard
val idlingRegistry: IdlingResource

The registry used by the container for signalling idling for UI tests

Link copied to clipboard
val intentDispatcher: CoroutineDispatcher

The dispatcher used for handling incoming orbit intents

Link copied to clipboard
val repeatOnSubscribedStopTimeout: Long = 100

A delay (in milliseconds) between the disappearance of the last subscriber and the stopping of the repeatOnSubscribed block

Link copied to clipboard
val sideEffectBufferSize: Int

Defines how many side effects can be buffered before the container suspends. If you are sending many side effects and getting out of memory exceptions this can be turned down to suspend the container instead. Unlimited by default.