streamCancel method

Future<bool> streamCancel(
  1. int streamId
)

Cancels an active low-level native stream in the worker.

Implementation

Future<bool> streamCancel(int streamId) async {
  final r = await _sendRequest<BoolResponse>(
    StreamCancelRequest(_nextRequestId(), streamId),
  );
  return r.value;
}