Stream: wasi

Topic: ✔ Resolving subtasks after parent task return


view this post on Zulip Victor Adossi (Nov 19 2025 at 17:37):

OK, after talking to Luke I get what I was missing now. For posterity, for the async sleep post return test:

The Host -> Guest call produces a Task (which task.returns immediately)
The Guest-> Guest call produces a Subtask in the caller guest AND a Task on the callee guest side

The second Task's event loop should not get stuck, and it should be calling a different callback to begin with.

What I've realized now is that I'm not sure where the second callback that I should be having access to is (i.e. which trampoline/instruction this information is tied to).

view this post on Zulip Notification Bot (Nov 19 2025 at 17:37):

Victor Adossi has marked this topic as resolved.

view this post on Zulip Victor Adossi (Nov 19 2025 at 17:38):

Ah Thanks @Luke Wagner and @Joel Dice (and Joel I might have a second question for you if I can't find the callback for the guest -> guest call in the Trampolines)


Last updated: Dec 06 2025 at 06:05 UTC