Dictionary<TKey,TValue>.Clear Async(TimeSpan, CancellationToken) Method
Removes all keys and values from the Reliable Dictionary.
public System.Threading.Tasks.Task ClearAsync (TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
abstract member ClearAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
The amount of time to wait for the operation to complete before throwing a TimeoutException. Primarily used to prevent deadlocks. The default is 4 seconds.
The token to monitor for cancellation requests. The default is None.
Task that represents the asynchronous clear operation.
timeout is negative.
The operation failed to complete within the given timeout.
The operation was canceled.