1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-01 14:28:05 +00:00

Go back to a single supervisor channel per fiber.

We now also use the fiber mask to figure out which flags to wait for.
This commit is contained in:
Calvin Rose
2021-01-12 21:35:28 -06:00
parent 61cca10cf6
commit 4f2d1cdc00
6 changed files with 47 additions and 69 deletions

View File

@@ -74,6 +74,12 @@
(calc-2 "(+ 9 10 11 12)"))
@[10 26 42]) "parallel subprocesses 2")
# ev/gather
(assert (deep= @[1 2 3] (ev/gather 1 2 3)) "ev/gather 1")
(assert (deep= @[] (ev/gather)) "ev/gather 2")
(assert-error "ev/gather 3" (ev/gather 1 2 (error 3)))
# Net testing
(repeat 10