Home  Contents

rawio:drain

Rawio Core4 Lua Event System

SYNOPSIS

handle:drain()

DESCRIPTION

Waits until all data buffered in the transmit buffer has been sent.

RETURN VALUE

On success, returns true. On failure, returns nil. In case of an error, the error can be retrieved using rawio:lastError().

ERRORS

This function works only on TTY devices.

NOTES

This function might wait indefinitely if some sort of handshaking (RTS/CTS or Xon/Xoff) is configured.

SEE ALSO