pedestal

souenzzo 2020-02-16T12:43:30.062Z

how to handle timeouts in pedestal?

vemv 2020-02-16T17:00:45.062100Z

wdym?

souenzzo 2020-02-16T17:05:24.062300Z

there is a global timeout handler or something like?

vemv 2020-02-16T17:11:28.062500Z

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

souenzzo 2020-02-16T18:20:42.062700Z

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

👍 1
vemv 2020-02-16T18:49:00.063Z

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

👍 1