Skip to content

Glossary: C# Beyond the Basics

Task.Delay

A method that returns a task that finishes after a set number of milliseconds, without blocking the program while it waits. It is often used to stand in for slow work, and it can take a `CancellationToken` so the wait can be cut short.

Where the book teaches it

Related terms

TaskCancellationToken