fn write(self: Stream, buffer: []const u8) WriteError!usize

TODO in evented I/O mode, this implementation incorrectly uses the event loop’s file system thread instead of non-blocking. It needs to be reworked to properly use non-blocking I/O.

Parameters

self: Stream,
buffer: []const u8,