GameActionAcceptAsync Method

Asynchronously accepts the specified visitor by calling the appropriate method.

Definition

Namespace: ProjectLCore.GameActions
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public Task AcceptAsync(
	IAsyncActionProcessor visitor,
	CancellationToken cancellationToken = default
)

Parameters

visitor  IAsyncActionProcessor
The visitor to accept.
cancellationToken  CancellationToken  (Optional)
Cancellation token to observe while waiting for the task to complete.

Return Value

Task
A task that represents the asynchronous operation.

Exceptions

OperationCanceledExceptionThe task was canceled.

See Also