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

Serial by chaining #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Serial by chaining #59

wants to merge 2 commits into from

Conversation

olegkovalenko
Copy link

Proposed new Serial implementation follows previous one. The distinct part is its based on chaining of gates.
Two Deferred being used, first as gate and second as result awaitable. Gate's concern only on sequential execution, so next computation starts only after previous has been completed. Whereas awaitable concern is only on delivering computed value. Separating those allows gc to reclaim memory since ref owns only a gate of Unit, whereas awaitable being handed over to caller.

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