<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 04/05/2016 07:56 AM, <a class="moz-txt-link-abbreviated" href="mailto:foldr@tutanota.com">foldr@tutanota.com</a> wrote:<br>
<blockquote cite="mid:KEaGytq--3-0@tutanota.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
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?</blockquote>
<br>
Yes, it's guaranteed that [initialize] task code finishes before any
requests are handled.<br>
<br>
<blockquote cite="mid:KEaGytq--3-0@tutanota.com" type="cite">I have
not found anything similar for shutdown de-initialization.<br>
</blockquote>
<br>
No one asked for that kind of task yet, but it might not be too hard
to add.<br>
</body>
</html>