<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
Hi,<br /><br />Is there any mechanism to reliably initialize a third-party library on Ur/Web application startup and de-initialize it (once only!) on application shutdown?<br /><br />I probably can use [initialize] task in the beginning, but I need to ensure that it completes before any requests are processed by the application - can I rely on that? I have not found anything similar for shutdown de-initialization.<br /><br />See [1] for a practical example (notes at the bottom of the page). <br /><br /><a href="https://downloads.haskell.org/~ghc/7.10.3/docs/html/users_guide/ffi-ghc.html" target="_blank">https://downloads.haskell.org/~ghc/7.10.3/docs/html/users_guide/ffi-ghc.html</a><br /><br /><br />  </body>
</html>