State Manager. Remove State Async(String, CancellationToken) Method
Removes an actor state with specified state name.
public System.Threading.Tasks.Task RemoveStateAsync (string stateName, System.Threading.CancellationToken cancellationToken = null);
abstract member RemoveStateAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Name of the actor state to remove.
The token to monitor for cancellation requests.
A task that represents the asynchronous remove operation.
An actor state with given state name does not exist.
The specified state name is null.
The operation was canceled.