MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.core.common.utils/asFlow

asFlow

[jvm]
inline fun <T> Value<ChildSlot<*, *>>.asFlow(withNullsIfNotInstance: Boolean = false, timeout: Duration = 500.milliseconds): Flow<T?>

Observe the instance of a child slot as a flow.

Receiver

Value Original slot

Return

Flow Flow of instance

Parameters

jvm

   
T Type of the result
withNullsIfNotInstance Emits null if the current value is not of the correct type
timeout Timeout to wait for emission