diff options
Diffstat (limited to 'channel.mu')
-rw-r--r-- | channel.mu | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channel.mu b/channel.mu index bc6ee44c..5c3ea735 100644 --- a/channel.mu +++ b/channel.mu @@ -1,9 +1,9 @@ # example program: communicating between routines using channels -recipe producer [ +recipe producer chan:address:channel -> chan:address:channel [ # produce characters 1 to 5 on a channel local-scope - chan:address:channel <- next-ingredient + load-ingredients # n = 0 n:character <- copy 0 { @@ -18,10 +18,10 @@ recipe producer [ } ] -recipe consumer [ +recipe consumer chan:address:channel -> chan:address:channel [ # consume and print integers from a channel local-scope - chan:address:channel <- next-ingredient + load-ingredients { # read an integer from the channel n:character, chan:address:channel <- read chan |