go-serial icon indicating copy to clipboard operation
go-serial copied to clipboard

add support for drain

Open polomsky opened this issue 5 years ago • 2 comments

Tested on Mac OS, Linux and Windows with UART emulated on USB.

I wrote general BSD code, because it should work, but I am not able to test it.

On Mac OS I am quite sure that drain behaves as needed. For Windows it seems that drain is actually part of Write, because Write was slow and Drain was fast. But I have not found any mention in Win32 docs about buffering and asynchronous write, so I kept it. For Linux Drain is also taking more time than writing.

polomsky avatar May 10 '20 09:05 polomsky

great ,,

wissamalkja avatar Jul 06 '20 13:07 wissamalkja

@wissamalkja could you merge it? I've looked for the same feature.

smuroff avatar Apr 21 '21 13:04 smuroff

The Linux implementation has been replaced with #159.

cmaglie avatar Aug 09 '23 16:08 cmaglie