livestream-kt / dev.shreyaspatil.livestream / LiveStream / set

set

@MainThread fun set(stream: String, value: T?): Unit

Sets the value. If there are active subscribers, the value will be dispatched to them. This method must be called from the main thread. If you need set a value from a background thread, you can use post

Parameters

stream - Data stream

value - The new value