mikepb / go-serial

Go binding to libserialport for serial port functionality.
53 stars 28 forks source link

Added read/write functional with timeout var (instead of deadline) #7

Closed zavorotynskiy closed 6 years ago

zavorotynskiy commented 6 years ago

I guess it can be useful for somebody to set the timeout (time.Duration) for Read / Write methods instead of using the timestamp before each run the method.

jakelee8 commented 6 years ago

The API was modeled after the net.Conn API. Adding a timeout API would unnecessarily complicate the API and create confusion about which method to use.