I'm trying to receive messages from a place. Receiving the messages with `place-channel-get` works fine, but using `sync` blocks indefinitely. I want to use `sync` instead of `place-channel-get` to check multiple channels simultaneously for messages.
Below is an example that demonstrates the problem. What am I doing wrong? Am I using `sync` incorrectly? Does `sync` not work with channels? (module hello-world racket (require racket/place/distributed racket/place) (provide world) (define (world ch) (define s (place-channel-get ch)) (place-channel-put ch (string-append s "World!\n"))) (module+ main (define nd (create-place-node "localhost" #:listen-port 1234)) (define ch (dynamic-place #:at nd (quote-module-path "..") 'world)) (place-channel-put ch "Hello ") ; (define rs (place-channel-get ch)) ; works (define rs (sync ch)) ; block indefinitely (write-string rs))) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.