runWhenConnected

suspend fun <R> runWhenConnected(command: suspend (T) -> R): R