diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-08 10:52:58 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-08 10:53:06 -0700 |
commit | 9458918f9eb88817e6b58e6e475597f8d60ecc40 (patch) | |
tree | e24a56839615ea24524022047bfe65ba9f346928 /channel.mu | |
parent | 0d6630f075ee80a3339451eff573d3ac748b7d60 (diff) | |
download | mu-9458918f9eb88817e6b58e6e475597f8d60ecc40.tar.gz |
3483
Diffstat (limited to 'channel.mu')
-rw-r--r-- | channel.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.mu b/channel.mu index 8d71de5c..66d0be79 100644 --- a/channel.mu +++ b/channel.mu @@ -7,7 +7,7 @@ def producer sink:&:sink:char -> sink:&:sink:char [ # n = 0 n:char <- copy 0 { - done?:boolean <- lesser-than n, 5 + done?:bool <- lesser-than n, 5 break-unless done? # other threads might get between these prints $print [produce: ], n, [ @@ -25,7 +25,7 @@ def consumer source:&:source:char -> source:&:source:char [ load-ingredients { # read an integer from the channel - n:char, eof?:boolean, source <- read source + n:char, eof?:bool, source <- read source break-if eof? # other threads might get between these prints $print [consume: ], n:char, [ |