Method _Stdio.Buffer()->__set_on_write()


Method __set_on_write

void __set_on_write(function(:void) write_callback)

Description

This tells the buffer to trigger the write callback for the specified file descriptor when data is added to the buffer.

Note

This is used internally by Stdio.File and SSL.File to handle nonblocking buffered mode, and is not necessarily intended to be used directly by anything but implementations of File or Stream like programs. Do not use this yourself on buffers with Files or Streams in buffer modes.