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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new 282c806  async/await draft post (additional refinements)
282c806 is described below

commit 282c806688a8263cb32fd256c4bd8b10585bcbf3
Author: Paul King <[email protected]>
AuthorDate: Thu Mar 26 14:47:18 2026 +1000

    async/await draft post (additional refinements)
---
 site/src/site/blog/groovy-async-await.adoc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/site/src/site/blog/groovy-async-await.adoc 
b/site/src/site/blog/groovy-async-await.adoc
index 8433f7d..d230032 100644
--- a/site/src/site/blog/groovy-async-await.adoc
+++ b/site/src/site/blog/groovy-async-await.adoc
@@ -10,7 +10,7 @@ Paul King <paulk-asert|PMC_Member>
 A proposed enhancement for Groovy adds native `async`/`await` as a
 language-level feature
 (https://issues.apache.org/jira/browse/GROOVY-9381[GROOVY-9381],
-https://github.com/apache/groovy/pull/2387[PR #2387]).
+https://github.com/apache/groovy/pull/2387[PR \#2387]).
 Inspired by similar constructs in JavaScript, C#, Kotlin, and Swift,
 the proposal lets you write asynchronous code in a sequential, readable
 style — with first-class support for async streams, deferred cleanup,
@@ -234,10 +234,10 @@ https://go.dev/blog/defer-panic-and-recover[Go's `defer`]:
 ----
 async enterDungeon(hero, dungeonId) {
     var familiar = hero.summonFamiliar()
-    defer { familiar.dismiss() }
+    defer familiar.dismiss()
 
     var portal = openPortal(dungeonId)
-    defer { portal.close() }
+    defer portal.close()
 
     await hero.explore(portal, familiar)
 }

Reply via email to