userCommand static method

WorkerRequest userCommand(
  1. dynamic channelInfo,
  2. int command,
  3. List args,
  4. CancellationToken? token,
  5. 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
    ];