(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close