(deref-future future)
(deref-future future {:keys [on-deref-error] :or {on-deref-error nop}})
(deref-future future timeout-ms timeout-val)
(deref-future future
timeout-ms
timeout-val
{:keys [on-deref-error on-deref-timeout]
:or {on-deref-error nop on-deref-timeout nop}})
Deref a java.util.concurrent.Future object.
Deref a java.util.concurrent.Future object.
(expected expectation found)
(expected pred expectation found)
Throw illegal input exception citing expectation
and what was found
did not match. Optionally accept a predicate
fn to test found
before throwing the exception.
Throw illegal input exception citing `expectation` and what was `found` did not match. Optionally accept a predicate fn to test `found` before throwing the exception.
(maybe klasses & body)
Given exception class names return the result of evaluating body of code as either [result nil] or [nil exception]. Throw exception if the body of code throws an exception not covered by specified exception class names.
Given exception class names return the result of evaluating body of code as either [result nil] or [nil exception]. Throw exception if the body of code throws an exception not covered by specified exception class names.
(maybe-call klasses f)
Return vector [result error success?] upon invoking the task.
Return vector [result error success?] upon invoking the task.
(public-method? method-spec)
Return true if method spec belongs to a public method, false otherwise.
Return true if method spec belongs to a public method, false otherwise.
(type-methods pred class-and-interfaces)
Given a collection of class and interface symbols, discover methods using reflection and return the ones to be implemented using Clojure. The key :arity (value: integer) is added to each spec to indicate the method arity. :name (symbol) name :type (symbol) class name or primitive data type for fields, nil for methods :return-type (symbol) class name or primitive data type for methods, nil for fields :declaring-class (symbol) class that declared the method :parameter-types (symbol vector) classes representing the argument types :exception-types (symbol vector) classes representing the exception types :flags (keyword set) a set containing any or more of :public, :private, :static, :bridge, :synthetic, :static, :varargs :arity (long) arity of the method
Given a collection of class and interface symbols, discover methods using reflection and return the ones to be implemented using Clojure. The key :arity (value: integer) is added to each spec to indicate the method arity. :name (symbol) name :type (symbol) class name or primitive data type for fields, nil for methods :return-type (symbol) class name or primitive data type for methods, nil for fields :declaring-class (symbol) class that declared the method :parameter-types (symbol vector) classes representing the argument types :exception-types (symbol vector) classes representing the exception types :flags (keyword set) a set containing any or more of :public, :private, :static, :bridge, :synthetic, :static, :varargs :arity (long) arity of the method
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close