An asynchronous lifetime for inference resources. Acquisitions register before execution starts; close joins acquisitions and attempts every release.
An asynchronous lifetime for inference resources. Acquisitions register before execution starts; close joins acquisitions and attempts every release.
(acquire! scope allocate release)Allocate synchronously and register its awaitable release before returning. Release receives the resource and returns a CPS operation. Close waits for acquisitions already started; new acquisitions after closing are refused.
Allocate synchronously and register its awaitable release before returning. Release receives the resource and returns a CPS operation. Close waits for acquisitions already started; new acquisitions after closing are refused.
(close! scope)CPS finalizer. Repeated/concurrent closes await the same outcome. Releases run in reverse acquisition order, including resources acquired while closing.
CPS finalizer. Repeated/concurrent closes await the same outcome. Releases run in reverse acquisition order, including resources acquired while closing.
(run body)Return a Spin executing (body scope), which returns a Spin or CPS operation. Cancellation, failure and success all finalize owned resources before exit.
Return a Spin executing (body scope), which returns a Spin or CPS operation. Cancellation, failure and success all finalize owned resources before exit.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |