On this page:
spawn
channel
channel-recv-evt
channel-send-evt
thread-done-evt
current-time
time-evt

 (require mzlib/cml)

The mzlib/cml library defines a number of procedures that wrap PLT Scheme concurrency procedures. The wrapper procedures have names and interfaces that more closely match those of Concurrent ML [Reppy99].

(spawn thunk)  thread?
  thunk : (-> any)
Equivalent to (thread/suspend-to-kill thunk).

Equivalent to (make-channel).

(channel-recv-evt ch)  evt?
  ch : channel?
Equivalent to ch.

(channel-send-evt ch v)  evt?
  ch : channel?
  v : any/c
Equivalent to (channel-put-evt ch v).

(thread-done-evt thd)  any
  thd : thread?
Equivalent to (thread-dead-evt thread).

(time-evt tm)  evt?
  tm : real?
Equivalent to (alarm-evt tm).