This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-dev-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 82e7f71  2026/03/27 11:40:06: Generated dev website from 
groovy-website@3b9705e
82e7f71 is described below

commit 82e7f7173034f236ec7baf1749cf493242dbd7d2
Author: jenkins <[email protected]>
AuthorDate: Fri Mar 27 11:40:06 2026 +0000

    2026/03/27 11:40:06: Generated dev website from groovy-website@3b9705e
---
 blog/groovy-async-await.html | 4 ++--
 search/search-index.json     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/blog/groovy-async-await.html b/blog/groovy-async-await.html
index 2b9847e..42be00c 100644
--- a/blog/groovy-async-await.html
+++ b/blog/groovy-async-await.html
@@ -443,12 +443,12 @@ simultaneously. If any hero falls, the whole raid 
retreats.
 <code>AsyncScope</code> binds child task lifetimes to a scope — inspired by
 Kotlin&#8217;s <code>coroutineScope</code>, Swift&#8217;s 
<code>TaskGroup</code>, and Java&#8217;s
 <code>StructuredTaskScope</code>. When the scope exits, all child tasks have
-completed or been cancelled:</p>
+completed or been canceled:</p>
 </div>
 <div class="listingblock">
 <div class="content">
 <pre class="prettyprint highlight"><code data-lang="groovy">async 
raidDungeon(List&lt;Hero&gt; party, List&lt;Room&gt; rooms) {
-    AsyncScope.withScope { scope -&gt;
+    try(var scope = AsyncScope.create()) {
         var missions = unique(party, rooms).collect { hero, room -&gt;
             scope.async { await hero.scout(room) }
         }
diff --git a/search/search-index.json b/search/search-index.json
index 99bb9df..b071861 100644
--- a/search/search-index.json
+++ b/search/search-index.json
@@ -254,7 +254,7 @@
     {
         "id": "blog/groovy-async-await.html",
         "title": "The Apache Groovy programming language - Blogs - Async/await 
for Groovy",
-        "content": "The Apache Groovy programming language - Blogs - 
Async/await for Groovy Socialize Discuss on the mailing list Groovy on X Groovy 
on Bluesky Groovy on Mastodon Groovy on LinkedIn Events and conferences Source 
code on GitHub Report issues in Jira Stack Overflow questions Slack Community 
You are using an outdated browser. Please upgrade your browser to improve your 
experience. Apache Groovy&trade; Learn Documentation Download Support 
Contribute Ecosystem Blog posts Socia [...]
+        "content": "The Apache Groovy programming language - Blogs - 
Async/await for Groovy Socialize Discuss on the mailing list Groovy on X Groovy 
on Bluesky Groovy on Mastodon Groovy on LinkedIn Events and conferences Source 
code on GitHub Report issues in Jira Stack Overflow questions Slack Community 
You are using an outdated browser. Please upgrade your browser to improve your 
experience. Apache Groovy&trade; Learn Documentation Download Support 
Contribute Ecosystem Blog posts Socia [...]
         "url": "blog/groovy-async-await.html",
         "site": "dev"
     },

Reply via email to