From a5b80c255c0f4011b6d0aa4764febf3857ce5b5f Mon Sep 17 00:00:00 2001 From: adamw Date: Fri, 5 Jan 2024 21:02:24 +0100 Subject: [PATCH] Readme --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 900fc4f..cab5c0b 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@ # jox -Fast and Scalable Channels in Java. - -Designed to be used with [Project Loom](https://openjdk.org/projects/loom/). +Fast and Scalable Channels in Java. Designed to be used with Java 21+ and virtual threads, +see [Project Loom](https://openjdk.org/projects/loom/). Inspired by the "Fast and Scalable Channels in Kotlin Coroutines" [paper](https://arxiv.org/abs/2211.04986), and the [Kotlin implementation](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/common/src/channels/BufferedChannel.kt). Articles: -* [Announcing jox: Fast and Scalable Channels in Java](https://softwaremill.com/announcing-jox-fast-and-scalable-channels-in-java/). +* [Announcing jox: Fast and Scalable Channels in Java](https://softwaremill.com/announcing-jox-fast-and-scalable-channels-in-java/) ## Dependencies @@ -46,8 +45,8 @@ import com.softwaremill.jox.Channel; class Demo1 { public static void main(String[] args) throws InterruptedException { // creates a rendezvous channel - // (buffer of size 0 - a sender & receiver must meet to pass a value) - var ch = new Channel(0); + // (a sender & receiver must meet to pass a value: as if the buffer had size 0) + var ch = new Channel(); Thread.ofVirtual().start(() -> { try {