await

macrosince v1.12.145 clojure.core/awaitEdit
(await expr)

Same as the JavaScript await operator, which must be used inside an ^:async function.


See Also:


Source code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro await [expr]
  (core/assert (:async &env) "await can only be used in async contexts")
  (core/list 'js* "(await ~{})" expr))