Skip to content

onStdOut not properly working #25

@Osanosa

Description

@Osanosa

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions