diff options
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 b9054b56..067eec37 100644 --- a/channel.mu +++ b/channel.mu @@ -38,8 +38,8 @@ def main [ local-scope source:address:source:char, sink:address:sink:char <- new-channel 3/capacity # create two background 'routines' that communicate by a channel - routine1:number <- start-running producer, sink - routine2:number <- start-running consumer, source + routine1:num <- start-running producer, sink + routine2:num <- start-running consumer, source wait-for-routine routine1 wait-for-routine routine2 ] |