Yuari
Documentation
Docs/Timer/Duration.FromMinutes

Duration.FromMinutes

Creates a Duration from minutes.

Syntax

Duration.FromMinutes(value: any) -> any

Parameters

ParameterTypeDescription
valueanyThe value to apply.

Returns

TypeDescription
anyThe value produced by the call.

Description

Duration.FromMinutes is part of the Timer library. Timer, Stopwatch and Duration objects driven by the VM scheduler.

The operation is performed immediately using the arguments supplied at the call site.

Example

local duration = Duration.FromMinutes(2)
print(duration.Seconds)

Notes

  • Timer callbacks run on the executor scheduler; disable or destroy timers when they are finished.