Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ZIO 1.0: Backport some improvements to supervisor #5877

@jdegoes

Description

@jdegoes

We can add these two new methods to ZIO 1.x Supervisor data type, with default, "do-nothing" implementations.

private[zio] def unsafeOnSuspend[E, A](fiber: Fiber.Runtime[E, A]): Unit
private[zio] def unsafeOnResume[E, A](fiber: Fiber.Runtime[E, A]): Unit

These methods must be called on fiber suspend / resume.

/cc @dkarlinsky

Metadata

Metadata

Assignees

No one assigned

    Labels

    ziohackathonCandidate issues for a ZIO Hackathon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions