Resource
value-writer
Writer for streaming completion values.
resource value-writer;F check-write
check-write: func() -> result<u32, stream-error>;Check readiness for writing. Returns the number of values that can be written without blocking.
F write
write: func(values: list<string>) -> result<_, stream-error>;Write completion values to the stream.
F close
close: func(options: option<completion-result-options>) -> result<_, stream-error>;Close the completion stream.
F send-completions
send-completions: func(output: output-stream, values: list<string>, options: option<completion-result-options>) -> result<_, stream-error>;Send a complete list of completions and close the output stream.
F open
open: func(output: output-stream) -> result<value-writer, stream-error>;Start the completion stream.