Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

.ctor

Declaring type: Timer
Module: System.Concurrency
Assembly: System.Runtime.dll
Source file: Timer.rvn

Overloads / Variants

.ctor

init(callback: () -> ()) -> void

Source file: Timer.rvn

Creates a stopped timer. The callback may capture its own state.

Parameters

Name Type Description
callback Function

.ctor

init(callback: () -> Task<void>) -> void

Source file: Timer.rvn

Creates a stopped timer. The callback may capture its own state.

Parameters

Name Type Description
callback Function