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

Chaining unfulfilled handled Promises must share the handler #135

Closed
michaelfig opened this issue Jul 31, 2019 · 1 comment
Closed

Chaining unfulfilled handled Promises must share the handler #135

michaelfig opened this issue Jul 31, 2019 · 1 comment
Labels
eventual-send package: eventual-send

Comments

@michaelfig
Copy link
Member

When returning a promise from an eventual send, if the target of the send was unfulfilled and had an unfulfilled handler, the result should share the same unfulfilled handler until it is fulfilled. Thus the result must also be a handled promise, not an unhandled promise.

This allows the unfulfilled handler to be the coordinator for all promise chains involving the same logical destination, and thereby to perform pipelining.

If the promise resolves to a presence, the fulfilled handler takes over the task of coordinator.

@michaelfig michaelfig changed the title Chaining unfulfilled Promises must result in handled Promises Chaining unfulfilled handled Promises must share the handler Jul 31, 2019
@warner
Copy link
Member

warner commented Dec 4, 2019

in the old repo. this was eventual-send issue 21

@warner warner transferred this issue from Agoric/eventual-send Dec 4, 2019
@warner warner added the eventual-send package: eventual-send label Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eventual-send package: eventual-send
Projects
None yet
Development

No branches or pull requests

2 participants