about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-01-10 12:23:58 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-01-10 12:26:24 -0800
commite5e297962736b4542e1a037edf103ea44030227f (patch)
treee050d1efd207a08391e585efe0fb9e9c860c8502
parentd91440edb16a65f4887c118a3e7727485e46655e (diff)
downloadmu-e5e297962736b4542e1a037edf103ea44030227f.tar.gz
520 - update stale example
For new interface to 'sleep' at 511.
-rw-r--r--channel.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/channel.mu b/channel.mu
index 343caa7e..d58f4546 100644
--- a/channel.mu
+++ b/channel.mu
@@ -43,5 +43,5 @@
   ; create two background 'routines' that communicate by a channel
   (fork consumer:fn nil:literal/globals chan:channel-address)
   (fork producer:fn nil:literal/globals chan:channel-address)
-  (sleep 2000:literal)  ; wait for forked routines to effect the transfer
+  (sleep for-some-cycles:literal 2000:literal)  ; wait for forked routines to effect the transfer
 ])
> ^
080f5855 ^
6c554d1e ^
080f5855 ^
6c554d1e ^
080f5855 ^
6c554d1e ^
080f5855 ^




6c554d1e ^


080f5855 ^
6c554d1e ^
080f5855 ^
6c554d1e ^
080f5855 ^
6c554d1e ^
080f5855 ^







bc0fa578 ^

6c554d1e ^
bc0fa578 ^
080f5855 ^
bc0fa578 ^
6c554d1e ^
bc0fa578 ^
080f5855 ^
bc0fa578 ^






















6c554d1e ^

638c03dc ^
6c554d1e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84