Liking cljdoc? Tell your friends :D

wagoe.storage.shell.adapters.spool

A streamed file written to a temporary file before it is stored: that gives the length an upload needs up front without holding the file in memory, and leaves nothing stored when the writer fails.

A streamed file written to a temporary file before it is stored: that
gives the length an upload needs up front without holding the file in
memory, and leaves nothing stored when the writer fails.
raw docstring

remove-abandoned!clj

(remove-abandoned! dir idle)

Delete the spools in dir nobody has written to for idle, a Duration: left by a process that died mid-write. One being written is newer.

Delete the spools in `dir` nobody has written to for `idle`, a Duration:
left by a process that died mid-write. One being written is newer.
sourceraw docstring

with-spooledclj

(with-spooled write! f)
(with-spooled write! dir f)

Call (f path) on what write! wrote, spooled to directory dir, the system's temporary one when nil, and delete the file afterwards unless f moved it.

Call `(f path)` on what `write!` wrote, spooled to directory `dir`, the
system's temporary one when nil, and delete the file afterwards unless `f`
moved it.
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