internal/cm: update to go.bytecodealliance.org/cm@v0.2.0

This commit is contained in:
Randy Reddig
2025-03-15 22:01:26 -07:00
committed by Ron Evans
parent 7755780a49
commit 429aea8e74
14 changed files with 494 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
package cm
// Stream represents the Component Model [stream] type.
// A stream is a special case of stream. In non-error cases,
// a stream delivers exactly one value before being automatically closed.
//
// [stream]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md#asynchronous-value-types
type Stream[T any] struct {
_ HostLayout
stream[T]
}
type stream[T any] uint32
// TODO: implement methods on type stream