Liking cljdoc? Tell your friends :D

loom-otp.otplike.timer

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.
raw docstring

apply-afterclj

(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.
sourceraw docstring

apply-intervalclj

(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.
sourceraw docstring

cancelclj

(cancel tref)

Cancel a timer. Safe to call multiple times.

Cancel a timer. Safe to call multiple times.
sourceraw docstring

exit-afterclj

(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.
sourceraw docstring

kill-afterclj

(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.
sourceraw docstring

send-afterclj

(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.
sourceraw docstring

send-intervalclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close