Permit extraction of current flows from a handle

This commit is contained in:
Tony Garnock-Jones 2012-03-10 23:24:13 -05:00
parent 1c008cd42d
commit beddc9d099
2 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,9 @@
(lambda (v)
(set! names (set-remove names cname))))))
(define/public (current-flows)
flows)
(define/public (retract! name)
(sync (retract!-evt name)))

View File

@ -4,6 +4,7 @@
(require racket/port)
(require racket/class)
(require racket/match)
(require racket/pretty)
(require "conversation.rkt")
(require "standard-thread.rkt")
@ -40,6 +41,7 @@
(send handle assert! talk-topic)
(send handle assert! listen-topic)
(let loop ()
;;(pretty-print (send handle current-flows))
(display name o)
(display "@ROOM>> " o)
(flush-output o)