def-fetcher
(defmacro def-fetcher [sym bindings do-fetch-fn] `(defrecord ~sym ~bindings u/DataSource (-identity [this#] (:id this#)) (-fetch [this# env#] (unwrap (~do-fetch-fn this# env#)))))
Docs
관련 문서
Plugin Backlinks: 아무 것도 없습니다.
open:def-fetcher
(defmacro def-fetcher [sym bindings do-fetch-fn] `(defrecord ~sym ~bindings u/DataSource (-identity [this#] (:id this#)) (-fetch [this# env#] (unwrap (~do-fetch-fn this# env#)))))