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

 (require mzlib/cml) package: compatibility-lib

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

procedure

(spawn thunk)  thread?

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

procedure

(channel)  channel?

Equivalent to (make-channel).

procedure

(channel-recv-evt ch)  evt?

  ch : channel?
Equivalent to ch.

procedure

(channel-send-evt ch v)  evt?

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

procedure

(thread-done-evt thd)  any

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

procedure

(current-time)  real?

procedure

(time-evt tm)  evt?

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