From 40d7ca181ab7915eec87f7dcbdfde4fbf3f09bb1 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Tue, 11 Mar 2025 18:01:31 +0100 Subject: [PATCH] feat(p3): only allow `body.stream` calls once Signed-off-by: Roman Volosatovs --- wit-0.3.0-draft/types.wit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wit-0.3.0-draft/types.wit b/wit-0.3.0-draft/types.wit index 31eb62a..e48f496 100644 --- a/wit-0.3.0-draft/types.wit +++ b/wit-0.3.0-draft/types.wit @@ -265,8 +265,7 @@ interface types { /// Returns the contents of the body, as a stream of bytes. /// - /// This function may be called multiple times as long as any `stream`s - /// returned by previous calls have been dropped first. + /// This can be called at most once per body. /// /// On success, this function returns a stream and a future, which will resolve /// to an error code if receiving data from stream fails.