Skip to content

Add Async, Streams, and Futures concepts page#351

Closed
ericgregory wants to merge 1 commit into
bytecodealliance:mainfrom
ericgregory:p3-async-concepts
Closed

Add Async, Streams, and Futures concepts page#351
ericgregory wants to merge 1 commit into
bytecodealliance:mainfrom
ericgregory:p3-async-concepts

Conversation

@ericgregory

Copy link
Copy Markdown
Contributor

Adds a new design/async.md introducing the Canonical ABI primitives (async func, stream<T>, future<T>) that the Component Model added for WASI P3, covering the sandwich problem, each primitive with a WIT example, the stream-plus-future and write-direction-flip patterns, and tooling pointers; hooks it into Component Model Concepts as a new subsection after Packages.

Add a new design/async.md introducing the Canonical ABI primitives
(`async func`, `stream<T>`, `future<T>`) that the Component Model added
for the WASI P3 release. The page covers the sandwich problem (why
native async matters for composition), each primitive with a worked WIT
example, the stream-plus-future and write-direction-flip patterns, and a
tooling-support pointer.

Hook the page into Component Model Concepts as a new subsection after
Packages, and add the SUMMARY.md entry under that umbrella.

Signed-off-by: Eric Gregory <eric@cosmonic.com>
@ericgregory

Copy link
Copy Markdown
Contributor Author

Closing in favor of #352, which now bundles this page with the Migrating from WASI P2 to WASI P3 guide. The two pages cross-reference each other and form a coherent piece of P3 conceptual content; bundling avoids stack-management overhead and guarantees the cross-links land together.

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.

1 participant