golang-like channels for CL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Avril 55bef09244
Initial commit
6 years ago
README Initial commit 6 years ago
cl-channel.asd Initial commit 6 years ago
cl-channel.lisp Initial commit 6 years ago
cl-dispatcher.lisp Initial commit 6 years ago
package.lisp Initial commit 6 years ago

README

Go-like channels for atomically passing information between threads.

(make-channel) ; make new channel
(make-channel 2) ; make new channel with max size of 2 (untested)

(-> chan item) ; send item to channel
(<- chan) ; receive from channel (values item is-not-closed)
(release chan) ; close channel
(closed chan) ; is channel closed


(make-dispatcher) ; make dispatcher
(hook disp name lambda) ; add hook
(sig name (optional value)) ; signal name in parallel
(sig-serial name (optional value)) ; signal name in serial