This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-28
Channels
- # aleph (48)
- # announcements (3)
- # bangalore-clj (1)
- # beginners (131)
- # cider (30)
- # cljdoc (6)
- # cljs-dev (53)
- # cljsrn (24)
- # clojure (312)
- # clojure-austin (2)
- # clojure-europe (4)
- # clojure-finland (6)
- # clojure-nl (24)
- # clojure-spec (24)
- # clojure-uk (66)
- # clojurescript (185)
- # core-async (46)
- # cursive (10)
- # data-science (9)
- # datomic (15)
- # devcards (2)
- # emacs (50)
- # fulcro (28)
- # jobs (1)
- # jobs-discuss (2)
- # kaocha (11)
- # lein-figwheel (12)
- # nyc (1)
- # off-topic (105)
- # other-languages (80)
- # pedestal (6)
- # re-frame (50)
- # reagent (5)
- # reitit (1)
- # remote-jobs (2)
- # ring (10)
- # rum (1)
- # shadow-cljs (10)
- # spacemacs (19)
https://github.com/pedestal/pedestal-ions-sample/blob/master/src/ion_sample/ion.clj#L29
When I call some methods like this in my app, it returns nil
. What it means?
(let [routes #{["/sync" :get {:name ::sync
:enter (fn [ctx]
(assoc ctx :response {:body "sync"
:status 201}))}]
["/async" :get {:name ::async
:enter (fn [ctx]
(async/go
(assoc ctx :response {:body "async"
:status 202})))}]}
h (-> {::http/routes routes
::http/chain-provider provider/ion-provider}
http/default-interceptors
http/create-provider)]
(h {:uri "/sync"
;:uri "/async"
:request-method :get}))
@souenzzo going async is not supported at this time. Refer to https://github.com/pedestal/pedestal.ions#caveats