typelevel / typelevel/cats-effect

Supervisor is underpowered

Open
#2,985 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2.2k
Forks
576
Avg merge
2d 11h
Merged PRs (30d)
18

Description

I feel like some of the internal machinery inside Supervisor would be quite useful to expose in its external interface too. The current api has the advantage of mimicking the start api, but it means that Supervisor is useful in fewer cases than it could. In particular, I think it would be useful to be able to cancel a specific Fiber from Supervisor, but currently to do that you have to rebuild the exact same machinery, i.e. a Map[Unique, Fiber], in user code. Thoughts?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading Supervisor's external interface and its start API, then trace the internal Map[Unique, Fiber] machinery described in the issue. The work is done when the interface can cancel a specific Fiber without requiring users to rebuild that machinery, with the API shape and behavior agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.