Back
piped-input-stream (clj)
(source)function
(piped-input-stream func)
Create an input stream from a function that takes an output stream as its
argument. The function will be executed in a separate thread. The stream
will be automatically closed after the function finishes.
For example:
(piped-input-stream
(fn [ostream]
(spit ostream "Hello")))