userCommand static method
WorkerRequest
userCommand(
- dynamic channelInfo,
- int command,
- List args,
- CancellationToken? token,
- bool inspectResponse,
Creates a new request with the specified command
ID and optional arguments.
Implementation
static WorkerRequest userCommand(dynamic channelInfo, int command, List args,
CancellationToken? token, bool inspectResponse) =>
[
null, // 0 - travel time
channelInfo, // 1 - client
command, // 2 - command
args, // 3 - args
token, // 4 - cancellation token
null, // 5 - stream id / log level
null, // 6 - worker id
inspectResponse, // 8 - inspect response
];