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

post

fun post(stream: String, value: T?): Unit

Posts a task to main thread to set the given value. This method should be called from background thread. Otherwise, you can use set If there are active subscribers, the value will be dispatched to them.

Parameters

stream - Data stream

value - The new value