1 USING: concurrency.count-downs threads kernel tools.test ;
\r
2 IN: concurrency.count-downs.tests`
\r
4 [ ] [ 0 <count-down> await ] unit-test
\r
6 [ 1 <count-down> dup count-down count-down ] must-fail
\r
11 2dup [ await count-down ] 2curry "Master" spawn drop
\r
12 dup [ count-down ] curry "Slave" spawn drop
\r
13 dup [ count-down ] curry "Slave" spawn drop
\r
14 dup [ count-down ] curry "Slave" spawn drop
\r