Table of Contents

Method Delay

Namespace
Terminal.Gui.Time
Assembly
Terminal.Gui.dll

Delay(TimeSpan, CancellationToken)

Creates a delay. In tests, this can be instant or controlled.

public Task Delay(TimeSpan duration, CancellationToken cancellationToken = default)

Parameters

duration TimeSpan

The time span to delay.

cancellationToken CancellationToken

Cancellation token for the delay.

Returns

Task

A task that completes after the delay.