bin method

Future<void> bin(
  1. List<PdfRenderCommand> commands, {
  2. PdfCancellationToken? cancellation,
})

Replays commands through the binning core, yielding to the event loop (and checking cancellation) every ~1024 commands so a worker's cancel message can preempt a long walk - the same cooperative scheme as the worker's record path.

Implementation

Future<void> bin(List<PdfRenderCommand> commands,
        {PdfCancellationToken? cancellation}) =>
    replayCommandsCancellable(commands, this, cancellation: cancellation);