UtilConsoleSpinCursorTask Method

Asynchronously animates the console cursor producing a spin effect.

Definition

Namespace: DevCase.Core.Application.Console
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Task SpinCursorTask(
	CancellationToken cancellationToken,
	int speed = 100
)

Parameters

cancellationToken  CancellationToken
A CancellationToken that you must use to cancel this Task.
speed  Int32  (Optional)
The timeout, in milliseconds, between each movement of the animation. The spin animation has 4 movements.

Default value is 100.

Return Value

Task
A Task object to asynchronously animate the console cursor producing a spin effect.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also