Updatable

open class Updatable(initial: Component? = null) : SideboardLine(source)

An updatable sideboard line, which might have an initial content, and can be changed at any time.

Constructors

Link copied to clipboard
constructor(initial: Component? = null)

Properties

Link copied to clipboard
open override val textFlow: MutableSharedFlow<Component>

The internal text flow, which the sideboard collects in order to receive line updates.

Functions

Link copied to clipboard
fun launchUpdate(text: Component)

Launches a new coroutine to execute update in there.

Link copied to clipboard
suspend fun update(text: Component)

Emits a new text value to the internal update flow.