Alternatives to window.setTimeout
/window.setInterval
that automatically unregister installed callbacks
when the component unmounts.
Provides interval methods that guarentee duration between callbacks. Regular use of setInterval
is fine
for callbacks with determined execution time. However, if your callback could possibly take as long or longer
than your timeout
, you can end up with callbacks firing back to back.
Install in ScalaComponent.build
via .configure(TimerSupport.install)
.
- Companion:
- object
Value members
Inherited methods
Provides setInterval
-like behavior insuring that the time between calls of f
is at least the timeout
.
Provides setInterval
-like behavior insuring that the time between calls of f
is at least the timeout
.
- Inherited from:
- TimerSupportF
Provides setInterval
-like behavior insuring that the time between calls of f
is at least the timeout
.
Provides setInterval
-like behavior insuring that the time between calls of f
is at least the timeout
.
- Inherited from:
- TimerSupportF
Invokes the callback f
repeatedly every period
.
Invokes the callback f
repeatedly every period
.
- Inherited from:
- TimerSupportF
- Inherited from:
- TimerSupportF
Invokes the callback f
once after a minimum of timeout
elapses.
Invokes the callback f
once after a minimum of timeout
elapses.
- Inherited from:
- TimerSupportF
Invokes the callback f
once after a minimum of timeout
elapses.
Invokes the callback f
once after a minimum of timeout
elapses.
- Inherited from:
- TimerSupportF