Add `flush!` utility to actor.rkt

This commit is contained in:
Tony Garnock-Jones 2016-07-12 15:18:06 -04:00
parent 0b06bcf1c4
commit 7989bc4931
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,7 @@
assert!
retract!
patch!
flush!
syndicate-effects-available?
suspend-script*
@ -763,3 +764,9 @@
(define (patch! p)
(ensure-in-script! 'patch!)
(update-stream! *adhoc-label* p))
(define (flush!)
(ensure-in-script! 'flush!)
(define ack (gensym 'flush!))
(until (core:message ack)
(on-start (send! ack))))