diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 13:19:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 13:19:41 -0400 |
| commit | 64143f0a131a053414e4b73c17bff994522b11c2 (patch) | |
| tree | 2545507fde623f8846bf183388acdbb0234b5e65 /test/threads.tm | |
| parent | 5feecff9d93522002c74a1423d138c2aa8bc150d (diff) | |
Syntax overhaul (comments back to `#`, print statments to `!!`),
using `$/.../` for patterns and using a DSL for patterns
Diffstat (limited to 'test/threads.tm')
| -rw-r--r-- | test/threads.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/threads.tm b/test/threads.tm index 986ab864..2f259a0e 100644 --- a/test/threads.tm +++ b/test/threads.tm @@ -26,7 +26,7 @@ func main(): results := |:Int; max_size| >> thread := Thread.new(func(): - //! In another thread! + !! In another thread! while yes: >> got := jobs:get() when got is Increment(x): @@ -63,8 +63,8 @@ func main(): >> results:get() = 1001 - //! Canceling... + !! Canceling... >> thread:cancel() - //! Joining... + !! Joining... >> thread:join() - //! Done! + !! Done! |
