Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Troupe.Utils #14

Open
NicolasT opened this issue Mar 22, 2023 · 0 comments
Open

Add Troupe.Utils #14

NicolasT opened this issue Mar 22, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@NicolasT
Copy link
Owner

There are several useful things that may be built on top of the primitives, e.g.:

  • withProcess :: MonadProcess r m => Process r a -> (ProcessId -> Process r b) -> Process r b, a bracket-style utility which allows to spawn a process, run some other code given its PID, and kill the process at the end of the scope.
  • exit' which takes a plain SomeException instead of Maybe SomeException as exit does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant