forked from WebAssembly/spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The initial design issue had several suggestions how we might support asynchronous compilation, including a number of suggestions. I think these ideas and alternatives can be summarized as:
- 1: A separate instruction
func.new_asyncthat explicitly requests asynchronous compilation- 1A: it writes the result into a location (e.g. table index or global) when completed
- 1B: it returns a kind of promise
- 1C: it is integrated with stack-switching (e.g. it accepts a continuation)
- 2: The implementation of
func.newmay return a function that blocks until host-compilation is ready - 3: There is a polling mechanism for asynchronous functions such as
func.readywhich queries whether a function is ready for use (i.e. won't block for host compilation)
Let's move further discussion/design of asynchrony to this issue.
yuri91, kg and cfallin
Metadata
Metadata
Assignees
Labels
No labels