GameActionProcessorProcessActionAsync Method

Processes the given GameAction asynchronously.

Definition

Namespace: ProjectLCore.GameActions
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public Task ProcessActionAsync(
	GameAction action,
	CancellationToken cancellationToken = default
)

Parameters

action  GameAction
The game action to process.
cancellationToken  CancellationToken  (Optional)
A token to monitor for cancellation requests.

Return Value

Task
A task that represents the asynchronous operation.

Implements

IAsyncActionProcessorProcessActionAsync(GameAction, CancellationToken)

Exceptions

OperationCanceledExceptionThe task was canceled.

See Also