Liking cljdoc? Tell your friends :D

clj-arsenal.stream


args-specclj/s

(args-spec & args)
source

derive-specclj/s

(derive-spec deps f & {:keys [on-boot on-kill extra-lives]})
source

streamerclj/s

(streamer handler & {:as opts})

Creates a streamer. Calling the streamer returns a stream reference, which can be watched and derefed like a built-in reference type.

The handler takes all args passed to the streamer call, and should return a map of {::boot boot-fn ::kill ?kill-fn ::snap ?snap-fn ::extra-lives ?extra-lives}.

Options are:

  • :flush-signal - a custom signal to trigger flushes
  • :extra-lives - the default number of flushes to go after a stream's watch count reaches zero, before killing it.
Creates a streamer.  Calling the streamer returns a stream reference,
which can be watched and derefed like a built-in reference type.

The `handler` takes all args passed to the streamer call, and should
return a map of `{::boot boot-fn ::kill ?kill-fn ::snap ?snap-fn ::extra-lives ?extra-lives}`.

Options are:
- `:flush-signal` - a custom signal to trigger flushes
- `:extra-lives` - the default number of flushes to go after a stream's watch count
   reaches zero, before killing it.
sourceraw docstring

StreamSpecclj/sprotocol

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close