Skip to content

Conversation

@mikearnaldi
Copy link
Contributor

Summary

  • Add Scope.Scope to the effect requirements type signature for AtomRuntime.subscriptionRef and AtomRuntime.subscribable, aligning them with AtomRuntime.atom and AtomRuntime.fn which already support scoped effects
  • Add test case SubscriptionRef/runtime/scoped to verify finalizers work correctly when using scoped effects with subscriptionRef

This allows using Effect.addFinalizer and Effect.forkScoped directly in subscriptionRef without needing to provide Layer.scope as a workaround.

@tim-smart tim-smart merged commit 9db8b26 into tim-smart:main Dec 10, 2025
@github-actions github-actions bot mentioned this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants