Method Dispose
Dispose()
Stops this pipeline. The pipeline admits no more values from the source stream, and it does not queue them or start them. The cancelOnDispose parameter of MapAsync, which is true by default, sets at the setup if a disposal also cancels the tracked items. This method does not make that selection, because this IDisposable.Dispose() has no parameter and is the only path to a disposal. When cancelOnDispose was true, a disposal cancels each tracked item, Queued or Running, as one send on a cancelAll stream does. The same limits apply. A Running operation stops only if it monitors its CancellationToken, and the pipeline removes a Queued item at the time of its promotion, which is not always at the return of this call. This method also does not stop the output. Each operation that runs continues to its end and then publishes its result or its error. A second call is safe, because each call after the first does nothing.
public void Dispose()