Skip to content

testing for promise shortening? #5933

Answered by erights
dckc asked this question in Q&A
Aug 11, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

To clarify your question, does resolving a normal promise to an unresolved handled promise cause eventual-sends to the normal promise to get handled by the handled promise's unresolved-handler?

For the eventual-send proposal that we wish to get through tc39, yes.

For any possible shim implementation on any current JS engine (including v8 and xs), no.

As a result, those messages fail to be pipelined. Currently, to get reliable pipelining of messages eventually-sent to unresolved remote promises, you must carefully ensure that there are no normal promises between the immediate message target and the vat boundary. This is hard but not impossible.

Did we hit a motivating case?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@dckc
Comment options

dckc Aug 15, 2022
Collaborator Author

Answer selected by dckc
Comment options

You must be logged in to vote
2 replies
@erights
Comment options

@mhofman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants