You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2023/04/17 05:46:22 UTC
[groovy-website] branch asf-site updated: minor tweak
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 a6f5948 minor tweak
a6f5948 is described below
commit a6f5948b6b6ea96622532e65935368f901076e9a
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Apr 17 15:46:15 2023 +1000
minor tweak
---
site/src/site/blog/gpars-meets-virtual-threads.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/src/site/blog/gpars-meets-virtual-threads.adoc b/site/src/site/blog/gpars-meets-virtual-threads.adoc
index 4ee69c7..5ddea15 100644
--- a/site/src/site/blog/gpars-meets-virtual-threads.adoc
+++ b/site/src/site/blog/gpars-meets-virtual-threads.adoc
@@ -51,7 +51,7 @@ something like:
[source,groovy]
----
-assert nums.parallelStream().map(n -> n ** 2).collect(Collectors.toList()) == [1, 4, 9]
+assert nums.parallelStream().map(n -> n ** 2).toList() == [1, 4, 9]
----
Now, let's bring virtual threads into the picture. Luckily,