interruptTransfer method

Future<TransferResultInfo> interruptTransfer(
  1. ConnectionHandle handle,
  2. GenericTransferInfo transferInfo
)

Performs an interrupt transfer on the specified device. |handle|: An open connection to the device. |transferInfo|: The transfer parameters.

Implementation

Future<TransferResultInfo> interruptTransfer(
  ConnectionHandle handle,
  GenericTransferInfo transferInfo,
) async {
  var $res = await promiseToFuture<$js.TransferResultInfo>(
      $js.chrome.usb.interruptTransfer(
    handle.toJS,
    transferInfo.toJS,
  ));
  return TransferResultInfo.fromJS($res);
}