<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">On 28/07/2024 17:20, Werner
Randelshofer wrote:<br>
</div>
<blockquote type="cite" cite="mid:A0188DB0-6C26-4E78-A6DB-7529978E9EC9@fibermail.ch">
<pre class="moz-quote-pre" wrap="">:
Having a public method in StructuredTaskScope that waits until a timeout elapses,
for example something like StructuredTaskScope.join(Duration timeout),
would be very helpful for my use case.
</pre>
</blockquote>
We have some proposed updates to this API for the next preview. Part
of it is dropping the joinUntil preview API and replacing it with a
timeout (as a Duration) that can be providing when opening a new
STS. If the timeout expires before the join has completed then the
STS will be cancelled.<br>
<br>
-Alan<br>
</body>
</html>