Compatibility shim providing otplike.timer API backed by loom-otp.timer.
otplike.timer returns channels as timer references. This shim wraps loom-otp.timer's Timer records to provide similar semantics.
Compatibility shim providing otplike.timer API backed by loom-otp.timer. otplike.timer returns channels as timer references. This shim wraps loom-otp.timer's Timer records to provide similar semantics.
(apply-after msecs f)(apply-after msecs f args)Apply f to args after msecs. Returns timer reference. Exceptions in f are caught and ignored.
Apply f to args after msecs. Returns timer reference. Exceptions in f are caught and ignored.
(apply-interval msecs f)(apply-interval msecs f args)Apply f to args repeatedly at interval msecs. Returns timer reference. Timer is automatically cancelled when the calling process dies. Exceptions in f are caught and ignored (timer continues). Must be called from within a process context.
Apply f to args repeatedly at interval msecs. Returns timer reference. Timer is automatically cancelled when the calling process dies. Exceptions in f are caught and ignored (timer continues). Must be called from within a process context.
(cancel tref)Cancel a timer. Safe to call multiple times.
Cancel a timer. Safe to call multiple times.
(exit-after msecs reason)(exit-after msecs pid reason)Send exit signal to pid (or self) after msecs. Returns timer reference.
Send exit signal to pid (or self) after msecs. Returns timer reference.
(kill-after msecs)(kill-after msecs pid)Send :kill exit signal after msecs. Returns timer reference.
Send :kill exit signal after msecs. Returns timer reference.
(send-after msecs message)(send-after msecs pid message)Send message to pid (or self) after msecs. Returns timer reference.
Send message to pid (or self) after msecs. Returns timer reference.
(send-interval msecs message)(send-interval msecs pid message)Send message to pid (or self) repeatedly at interval msecs. Returns timer reference. Timer is automatically cancelled when the target process dies. Must be called from within a process context.
Send message to pid (or self) repeatedly at interval msecs. Returns timer reference. Timer is automatically cancelled when the target process dies. Must be called from within a process context.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |