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

 (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).

(channel) → channel?

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).

(current-time) → real?

Equivalent to (current-inexact-milliseconds).

(time-evt tm) → evt?

  tm : real?

Equivalent to (alarm-evt tm).