diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 12:20:53 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 12:20:53 -0500 |
| commit | 078b4431854895c64d9b55bc3e1a9122cc911f48 (patch) | |
| tree | aead6d835d0b9227059dd90bc2c626003e807ea9 /test/threads.tm | |
| parent | d905fa4888876eddc7716e88ffa158ed657bcf37 (diff) | |
Add a `repeat` keyword
Diffstat (limited to 'test/threads.tm')
| -rw-r--r-- | test/threads.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/threads.tm b/test/threads.tm index 2ac2b679..8fa61778 100644 --- a/test/threads.tm +++ b/test/threads.tm @@ -27,7 +27,7 @@ func main(): results := |:Int; max_size| >> thread := Thread.new(func(): !! In another thread! - while yes: + repeat: >> got := jobs:get() when got is Increment(x): >> results:give(x+1) |
