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

HandledPromise.unwrap(p) to synchronously get the presence #412

Closed
michaelfig opened this issue Jan 13, 2020 · 1 comment · Fixed by #413
Closed

HandledPromise.unwrap(p) to synchronously get the presence #412

michaelfig opened this issue Jan 13, 2020 · 1 comment · Fixed by #413

Comments

@michaelfig
Copy link
Member

Maybe: HandledPromise.unwrap(p) which throws if p is not a resolved handled promise, otherwise return the presence/fulfilled value.

Holidays are here, so I'd like to unwrap my presence.

Originally posted by @michaelfig in Agoric/eventual-send#24 (comment)

@michaelfig
Copy link
Member Author

Note that this should only return a HandledPromise's presence, and throw for any other argument.

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 a pull request may close this issue.

1 participant