MonitoredParallelInstructionSpecs don't throw cancellation exception belonging to the supplied cancellation token;
suggested fix:
the Parallelize method registers a callback on it's cancellation token.
In the body of that method not just any OperationCancelledException should be enqueued, but the OperationCancelledExeption generated by the CancellationToken's ThrowIfCancellationRequested().
MonitoredParallelInstructionSpecs don't throw cancellation exception belonging to the supplied cancellation token;
suggested fix:
the
Parallelizemethod registers a callback on it's cancellation token.In the body of that method not just any
OperationCancelledExceptionshould be enqueued, but theOperationCancelledExeptiongenerated by theCancellationToken'sThrowIfCancellationRequested().