IActorStateManager.RemoveStateAsync(String, CancellationToken) Method

Definition

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

Parameters

stateName
String

Name of the actor state to remove.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

A task that represents the asynchronous remove operation.

Exceptions

An actor state with given state name does not exist.

The specified state name is null.

The operation was canceled.

Applies to