send method
Future
send(
- int command, {
- List args = const [],
- CancelationToken? token,
- bool inspectRequest = false,
- 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);
}