Module spin_sdk.wit.imports.wasi_cli_stderr_0_3_0

Functions

def write_via_stream(data: componentize_py_async_support.streams.ByteStreamReader) ‑> componentize_py_async_support.futures.FutureReader[componentize_py_types.Ok[None] | componentize_py_types.Err[ErrorCode]]
Expand source code
def write_via_stream(data: ByteStreamReader) -> FutureReader[Result[None, wasi_cli_types_0_3_0.ErrorCode]]:
    """
    Write the given stream to stderr.
    
    If the stream's writable end is dropped this function will either return
    success once the entire contents of the stream have been written or an
    error-code representing a failure.
    
    Otherwise if there is an error the readable end of the stream will be
    dropped and this function will return an error-code.
    """
    raise NotImplementedError

Write the given stream to stderr.

If the stream's writable end is dropped this function will either return success once the entire contents of the stream have been written or an error-code representing a failure.

Otherwise if there is an error the readable end of the stream will be dropped and this function will return an error-code.