Skip to content

Serial by chaining - #59

Open
olegkovalenko wants to merge 2 commits into
masterfrom
serial-by-chaining
Open

Serial by chaining#59
olegkovalenko wants to merge 2 commits into
masterfrom
serial-by-chaining

Conversation

@olegkovalenko

Copy link
Copy Markdown

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