Currently, there is no way to cancel transferIn
so that the input buffer cannot be flushed.
- Can
UsbDevice.reset
(impl) be used? See libusb source?
- Use something like a state machine. (I do not prefer this - is portability fine?)
- Buffer promise so that
transferIn
looks "cancellable"