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

chore(code): Embed Resumable type inside each Effect for creating resumption value #683

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

romac
Copy link
Member

@romac romac commented Dec 16, 2024

While it is for now still possible to create a Resume value directly from the effect handler, the Resumable impl embedded within the effect steers users of the library towards returning the correct resume value. I intend to make it altogether impossible to resume with the wrong value in a follow-up PR.

…etter type-safety for resuming after performing an effect
@romac romac force-pushed the romac/resume-with branch from 74ab76e to fc7fcbd Compare December 16, 2024 14:11
@romac romac merged commit 08a19d8 into main Dec 16, 2024
11 checks passed
@romac romac deleted the romac/resume-with branch December 16, 2024 14:43
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.

1 participant