Documentation
¶
Rendered for js/wasm
Overview ¶
Package timer provides setTimeout, setInterval, Sleep and Ticker helpers for wings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInterval ¶
func SetInterval(fn func(), interval int) (cancel func())
SetInterval schedules fn to run every interval milliseconds. Returns a cancel() function that stops the interval.
func SetTimeout ¶
func SetTimeout(fn func(), delay int) <-chan struct{}
SetTimeout schedules fn to run after delay milliseconds. Returns a channel that closes when fn completes.
Types ¶
Click to show internal directories.
Click to hide internal directories.