closeStream static method

WorkerResponse closeStream()

Special WorkerResponse message to indicate the end of a stream.

Implementation

static WorkerResponse closeStream() => [
      null, // 0 - travel time
      null, // 1 - result
      null, // 2 - error
      true, // 3 - end of stream
      null, // 4 - log message
    ];