IntersectMBO / IntersectMBO/io-sim

Figure out if a thread is alive in `io-classes`

Open
#227 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
54
Forks
25
Avg merge
3h 9m
Merged PRs (30d)
1

Description

**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?**
* [x] Are you? :smiley:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.