Skip to content

[Bug] SuspendApp freezes app on System.exit #3846

@alexandru

Description

@alexandru
import arrow.continuations.SuspendApp

fun main(args: Array<String>) =
    SuspendApp {
        System.exit(1)
    }

This main completely freezes the process, needing an external SIGKILL to stop.

Maybe I'm doing something wrong, and also I realize that System.exit inside SuspendApp's passed-in closure may be a bad idea, but this isn't necessarily under the user's control.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions