Skip to content

Figure out if a thread is alive in io-classes #227

@MaximilianAlgehed

Description

@MaximilianAlgehed

Is your feature request related to a problem? Please describe.
With the removal of threadStatus support there is no way to figure out, to my best understanding, if a thread is alive or not.

Describe the solution you'd like
Since threadStatus has some issues in GHC, could we perhaps add something like isAlive :: ThreadId -> Bool which should have much clearer semantics?

Describe alternatives you've considered
Not being able to know if a part of your system is alive?

Additional context
This is usually possible in multi-threaded systems you'd like to model with io-sim...

Are you willing to implement it?

  • Are you? 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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