send method

  1. @override
Future send(
  1. int command, {
  2. List args = const [],
  3. CancelationToken? token,
  4. bool inspectRequest = false,
  5. bool inspectResponse = false,
})
inherited

Sends a workload to the worker.

Implementation

@override
Future<dynamic> send(
  int command, {
  List args = const [],
  CancelationToken? token,
  bool inspectRequest = false,
  bool inspectResponse = false,
}) {
  token?.throwIfCanceled();
  final channel = _channel;
  return (channel != null && token == null)
      ? _sendUncancelable(channel, command,
          args: args,
          inspectRequest: inspectRequest,
          inspectResponse: inspectResponse)
      : _sendAsync(command,
          args: args,
          token: token,
          inspectRequest: inspectRequest,
          inspectResponse: inspectResponse);
}