(wrap-future fut f)
Wraps a Java Future and applies a function when the result is realized.
Useful for cases where type conversion needs to happen to avoid leaking implementation details back to consumers of the future. Implements all the standard protocols of a Clojure Future, allowing convenient use in existing code.
Wraps a Java Future and applies a function when the result is realized. Useful for cases where type conversion needs to happen to avoid leaking implementation details back to consumers of the future. Implements all the standard protocols of a Clojure Future, allowing convenient use in existing code.
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 |