-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
Btw as mentioned in an issue#14
app is not responsive until command finishes and ping just continues to run
I'm using in jetpack compose as this
var test by remember { mutableStateOf("initial test string") }
Text(text = test)
LaunchedEffect(Unit) {
Shell.SU.run("ping google.com") {
onStdOut = { line: String ->
test = line
}
timeout = Shell.Timeout(1, TimeUnit.MILLISECONDS)
}
}
and the issue is unless I specify timeout, shell doesn't return anything
Metadata
Metadata
Assignees
Labels
No labels