Add `flush!` utility to actor.rkt
This commit is contained in:
parent
0b06bcf1c4
commit
7989bc4931
|
@ -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))))
|
||||
|
|
Loading…
Reference in New Issue