Method RemoveAsync
RemoveAsync(string, CancellationToken)
Removes the state with the specified ID, if there is one. Nothing is removed if the ID does not have the form of an ID.
Declaration
public ValueTask RemoveAsync(string id, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The ID that AddAsync(T, CancellationToken) returned. |
| CancellationToken | cancellationToken | A token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask |