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
rawio:break, rawio:cts, rawio:dcd, rawio:device, rawio:dsr, rawio:dtr, rawio:fd, rawio:flush, rawio:name, rawio:rng, rawio:rts, rawio:rxcnt, rawio:setDtr, rawio:setRts, rawio:setupComm, rawio:start, rawio:stop, rawio:txcnt