Fork me on GitHub
#pedestal
<
2020-02-16
>
souenzzo12:02:30

how to handle timeouts in pedestal?

souenzzo17:02:24

there is a global timeout handler or something like?

vemv17:02:28

sorry I still don't get you. there are various things that can time out

souenzzo18:02:42

I wanna say things like: if any handler last more then 3 seconds, call this other function

👍 4
vemv18:02:00

I'd create an interceptor that is present in every route In said interceptor, I'd plug in my concurrent facility of choice (java util.concurrent, clojure.core, core, async) to achieve the desired effect

👍 4