Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions proposals/cli/wit-0.3.0-draft/stdio.wit
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ interface stdout {
/// Otherwise if there is an error the readable end of the stream will be
/// dropped and this function will return an error-code.
@since(version = 0.3.0-rc-2026-01-06)
write-via-stream: async func(data: stream<u8>) -> result<_, error-code>;
write-via-stream: func(data: stream<u8>) -> future<result<_, error-code>>;
}

@since(version = 0.3.0-rc-2026-01-06)
Expand All @@ -61,5 +61,5 @@ interface stderr {
/// Otherwise if there is an error the readable end of the stream will be
/// dropped and this function will return an error-code.
@since(version = 0.3.0-rc-2026-01-06)
write-via-stream: async func(data: stream<u8>) -> result<_, error-code>;
write-via-stream: func(data: stream<u8>) -> future<result<_, error-code>>;
}
6 changes: 3 additions & 3 deletions proposals/filesystem/wit-0.3.0-draft/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,12 @@ interface types {
///
/// Note: This is similar to `pwrite` in POSIX.
@since(version = 0.3.0-rc-2026-01-06)
write-via-stream: async func(
write-via-stream: func(
/// Data to write
data: stream<u8>,
/// The offset within the file at which to start writing.
offset: filesize,
) -> result<_, error-code>;
) -> future<result<_, error-code>>;

/// Return a stream for appending to a file, if available.
///
Expand All @@ -345,7 +345,7 @@ interface types {
///
/// Note: This is similar to `write` with `O_APPEND` in POSIX.
@since(version = 0.3.0-rc-2026-01-06)
append-via-stream: async func(data: stream<u8>) -> result<_, error-code>;
append-via-stream: func(data: stream<u8>) -> future<result<_, error-code>>;

/// Provide file advisory information on a descriptor.
///
Expand Down
2 changes: 1 addition & 1 deletion proposals/sockets/wit-0.3.0-draft/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ interface types {
/// - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send>
/// - <https://man.freebsd.org/cgi/man.cgi?query=send&sektion=2>
@since(version = 0.3.0-rc-2026-01-06)
send: async func(data: stream<u8>) -> result<_, error-code>;
send: func(data: stream<u8>) -> future<result<_, error-code>>;

/// Read data from peer.
///
Expand Down
Loading