serial: Flush and drain writable on abort() and close()
This change enhances the abort() and close() methods on the writable attribute of a SerialPort object so that it is possible to request either a flush[1] (discarding buffered data) or drain[2] (waiting until buffered data has been transmitted). [1]: https://reillyeon.github.io/serial/#serialportsinkabortalgorithm-port [2]: https://reillyeon.github.io/serial/#serialportsinkclosealgorithm-port Bug: 989653, 989656 Change-Id: I95226e6f3069214b483935abdf4ae1e87d5961a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2277074 Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by:Dominick Ng <dominickn@chromium.org> Reviewed-by:
Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org> Reviewed-by:
Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#789724}
Showing
Please register or sign in to comment