MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

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

activeAsFlow

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

Observe the instance of a child stack as a flow.

Receiver

Value original stack

Return

Flow

Parameters

jvm

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