1 package cm
2 3 // Stream represents the Component Model [stream] type.
4 // A stream is a special case of stream. In non-error cases,
5 // a stream delivers exactly one value before being automatically closed.
6 //
7 // [stream]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#asynchronous-value-types
8 type Stream[T any] struct {
9 _ HostLayout
10 stream[T]
11 }
12 13 type stream[T any] uint32
14 15 // TODO: implement methods on type stream
16