From 078b4431854895c64d9b55bc3e1a9122cc911f48 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 3 Nov 2024 12:20:53 -0500 Subject: Add a `repeat` keyword --- docs/threads.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/threads.md b/docs/threads.md index ab0ce399..68fdf7d7 100644 --- a/docs/threads.md +++ b/docs/threads.md @@ -28,7 +28,7 @@ A new `Thread` object representing the created thread. >> jobs := |Int| >> results := |Int| >> thread := Thread.new(func(): - while yes: + repeat: input := jobs:get() results:give(input + 10 ) -- cgit v1.2.3