Skip to content

fix(bindgen): use waitable index in p3 future event payload#1433

Merged
vados-cosmonic merged 1 commit intobytecodealliance:mainfrom
andreiltd:fix/p3-future-event-waitable-idx
Apr 29, 2026
Merged

fix(bindgen): use waitable index in p3 future event payload#1433
vados-cosmonic merged 1 commit intobytecodealliance:mainfrom
andreiltd:fix/p3-future-event-waitable-idx

Conversation

@andreiltd
Copy link
Copy Markdown
Member

The producer side of future.read/future.write is emitting componentIdx as the event's payload0, but that value identifies the component instance and not the specific future so a wasm task waiting on multiple futures couldn't tell which one
resolved.

Copy link
Copy Markdown
Collaborator

@vados-cosmonic vados-cosmonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Thanks for the fix!

@vados-cosmonic vados-cosmonic added this pull request to the merge queue Apr 29, 2026
Merged via the queue into bytecodealliance:main with commit f075523 Apr 29, 2026
96 of 109 checks passed
@jco-release-bot
Copy link
Copy Markdown
Collaborator

🎉 The code in this PR was made available in the following release:
https://github.com/bytecodealliance/jco/releases/tag/js-component-bindgen-v1.18.0

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.

3 participants