My understanding is that parameters are copied between threads, but I'm not sure how this interacts with things like file ports, network connections, etc. Would the following code be problematic?
(define conn (make-parameter)) (define s (udp-open-socket)) (udp-bind! s #f 12345) (conn s) (thread (thunk (udp-send-to (conn) "8.8.8.8" 55555 #"hi from bob"))) (thread (thunk (udp-send-to (conn) "8.8.8.8" 55555 #"hi from fred"))) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAE8gKoeUGiwFA0FmrW6YMCLHaooyzkGRtZPMbwx8WJacCj%3D2uQ%40mail.gmail.com.