(try-put!! chan value)
Put value
to chan
immediately if possible and return true
,
else do nothing and return false
.
Put `value` to `chan` immediately if possible and return `true`, else do nothing and return `false`.
(wait-ref ref)
(wait-ref ref x)
(wait-ref ref pred timeout)
Block current thread until ref
value will satisfy pred
or timeout
ms expires.
Return true
if exited by satisfying pred
, false
if exited by timeout.
Possible forms:
(wait-ref ref) - Wait indefinitely for ref to become not-nil
(wait-ref ref timeout) - Wait timeout
ms for ref to become not-nil
(wait-ref ref pred) - Wait indefinitely for ref to satisfy pred
(wait-ref ref pred timeout) - Wait timeout
ms for ref to satisfy pred
Block current thread until `ref` value will satisfy `pred` or `timeout` ms expires. Return `true` if exited by satisfying `pred`, `false` if exited by timeout. Possible forms: (wait-ref ref) - Wait indefinitely for ref to become not-nil (wait-ref ref timeout) - Wait `timeout` ms for ref to become not-nil (wait-ref ref pred) - Wait indefinitely for ref to satisfy `pred` (wait-ref ref pred timeout) - Wait `timeout` ms for ref to satisfy `pred`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close