pub fn lockStderr(io: Io, buffer: []u8, terminal_mode: ?Terminal.Mode) Cancelable!LockedStderr CanceledCaller has requested the async operation to stop.
2633
2634
2635
2636
2637pub fn lockStderr(io: Io, buffer: []u8, terminal_mode: ?Terminal.Mode) Cancelable!LockedStderr {
const ls = try io.vtable.lockStderr(io.userdata, terminal_mode);
try ls.clear(buffer);
return ls;
}
For doing application-level writes to the standard error stream. Coordinates also with debug-level writes that are ignorant of Io interface and implementations.
See also:
tryLockStderr