runOnceIfAttached

fun runOnceIfAttached(runner: suspend CoroutineScope.() -> Unit): Boolean

Launches runner right away if attached, does nothing otherwise.

Return

True if runner has been launched, false otherwise.