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

Generalize supervisor #124

jdegoes opened this issue Jul 18, 2018 · 1 comment


None yet
2 participants
Copy link

commented Jul 18, 2018

Currently, using the supervise combinator will interrupt child fibers at the boundary, waiting until they have all been successfully terminated.

However, this can be generalized so that user-code can choose to join the fibers, instead of interrupting them, allowing them to complete normally:

sealed abstract class IO[E, A] {
  def supervised0(supervisor: List[Fiber[_, _]] => IO[Void, Unit]): IO[E, A] = ???

This comment has been minimized.

Copy link

commented Jul 23, 2018

I'll be on hols next week but if that hasn't been picked up when I'm back, I'm happy to help here, I've got experience now 😅 (or if there's more urgent to get zio closer to a 1.0, lmk).

@jdegoes jdegoes added this to the 1.0.0 milestone Jul 27, 2018

@jdegoes jdegoes closed this Aug 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.