typelevel / typelevel/cats-effect
Supervisor is underpowered
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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