-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reintroduce futures using Future and Promise
This commit reintroduces futures, allowing messages to send their results back to the sender of the message, without the need for a channel. Futures are split into two user facing types: Future and Promise. A Future is a proxy for a value to be computed in the future, while a Promise is used for specifying what that value is. Both a Future and Promise can only be used once (e.g. Future.get consumes its receiver). This in turn allows for a simple and efficient implementation, rather than the more complex implementation of the old Channel type. TODO: add deque TODO: replace channels Changelog: changed
- Loading branch information
1 parent
e0feaae
commit 442ecab
Showing
20 changed files
with
1,123 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.