On this page:
top
up

5.1TimersπŸ”— i

This module provides a functionality for running procedures after a given amount of time, that may be extended.

procedure

( timer-manager? x)boolean?

x:any/c
Determines if x is a timer manager.

struct

(struct timer (tmevtexpire-secondsaction)
#:extra-constructor-namemake-timer )
evt:evt?
expire-seconds:number?
action:(-> void )
evt is an alarm-evt that is ready at expire-seconds. action should be called when this evt is ready.

Handles the execution and management of timers.

procedure

( start-timer tmsaction)timer?

action:(-> void )
Registers a timer that runs action after s seconds.

procedure

( reset-timer! ts)void

t:timer?
Changes t so that it will fire after s seconds.

procedure

( increment-timer! ts)void

t:timer?
Changes t so that it will fire after s seconds from when it does now.

procedure

( cancel-timer! t)void

t:timer?
Cancels the firing of t ever and frees resources used by t.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /