Avoid use of sub; wait for server to come ready before sending messages
This commit is contained in:
parent
f1c1646163
commit
fe2bc31f4f
|
@ -13,7 +13,7 @@
|
||||||
(assert (account new-balance))))]
|
(assert (account new-balance))))]
|
||||||
[_ #f]))
|
[_ #f]))
|
||||||
0
|
0
|
||||||
(patch-seq (sub (alter-balance-by ?))
|
(patch-seq (assert (observe (alter-balance-by ?)))
|
||||||
(assert (account 0))))
|
(assert (account 0))))
|
||||||
|
|
||||||
(spawn (lambda (e s)
|
(spawn (lambda (e s)
|
||||||
|
@ -24,7 +24,11 @@
|
||||||
#f]
|
#f]
|
||||||
[_ #f]))
|
[_ #f]))
|
||||||
(void)
|
(void)
|
||||||
(sub (account ?)))
|
(assert (observe (account ?))))
|
||||||
|
|
||||||
(message (alter-balance-by +100))
|
(spawn (lambda (e s)
|
||||||
(message (alter-balance-by -30))
|
(and (patch/added? e)
|
||||||
|
(quit (list (message (alter-balance-by +100))
|
||||||
|
(message (alter-balance-by -30))))))
|
||||||
|
(void)
|
||||||
|
(assert (observe (observe (alter-balance-by ?)))))
|
||||||
|
|
Loading…
Reference in New Issue