Method Reset
Reset(CancellationToken)
Clears the current buffer and restarts the enumeration from the beginning.
Declaration
ValueTask Reset(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| ValueTask |
Remarks
Any active iterators of this buffer may receive an InvalidOperationException when they next MoveNextAsync() due to the invalid state of iteration.