Skip to content

Commit 9860cc1

Browse files
Apply suggestion from @vados-cosmonic
Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
1 parent 120f456 commit 9860cc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎component-model/src/design/async.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ Code generated from the WIT picks up each language's natural async idiom: `async
3737

3838
### Streams (`stream<T>`)
3939

40-
A typed, asynchronous channel for a sequence of `T` values. Crucially, `stream<T>` is a Canonical ABI *value*, not a resource: it can be returned from a call, accepted as a parameter, and handed from one component to another without giving up ownership of the underlying buffer. The same value can also be passed straight through a middle component without that component having to relay any wake-ups.
40+
A typed, asynchronous channel for a sequence of `T` values. Crucially, `stream<T>` is a Canonical ABI *value*, not a resource (as opposed to WASI 0.2) -- it can be returned from a call, accepted as a parameter, and handed from one component to another without giving up ownership of the underlying buffer.
41+
42+
The same value can also be passed straight through a one or more components without those component(s) having to relay any wake-ups.
4143

4244
```wit
4345
read-via-stream: func() -> tuple<stream<u8>, future<result<_, error-code>>>;

0 commit comments

Comments
 (0)