Skip to content

True Myth / task / Timer

Type Alias: Timer

Timer = Task<number, never>

A Task specialized for use with timeout or other methods or functions which want to know they are using.

NOTE

This type has zero runtime overhead, including for construction: it is just a Task with additional type information.