We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df6de8d commit 1c286e5Copy full SHA for 1c286e5
wit-0.3.0-draft/types.wit
@@ -273,10 +273,10 @@ interface types {
273
/// The returned future resolves to success if body is closed.
274
%stream: func() -> result<tuple<stream<u8>, future<result<_, error-code>>>>;
275
276
- /// Takes ownership of `body`, and returns an unresolved optional `trailers`.
+ /// Takes ownership of `body`, and returns an unresolved optional `trailers` result.
277
///
278
/// This function will trap if a `stream` child is still alive.
279
- finish: static func(this: body) -> future<option<trailers>>;
+ finish: static func(this: body) -> future<result<option<trailers>, error-code>>;
280
}
281
282
/// Represents an HTTP Request.
0 commit comments