Fork me on GitHub
#pedestal
<
2021-12-10
>
Proctor01:12:23

Pedestal Interceptors design history question, was there a consideration for a :finally/`:always` type of function that would be invoked after :error or :leave to focus specifically on clean-up of “opened” resources (e.g. db connection, file io, etc)? I know it could be covered by using the same function reference for both the :error and :leave key, but that potentially complects resource clean-up with error handling / post processing, compared to adding complexity/overhead on another exit path through the interceptor

Proctor01:12:31

Looking at Pedestal interceptor inspired processing in places that are not HTTP request based processing