Skip to content
Snippets Groups Projects
Commit 33303778 authored by Vladimir Sedach's avatar Vladimir Sedach
Browse files

Exported future type, added a type check for yield.

parent 9297eeca
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ another thread is currently computing the value of the future, blocks
until the value is available.
In case of an eager future, blocks until the value is available."
(assert (typep future 'future) () "~A is not a future" future)
(tagbody (catch 'task-done
(let ((*computing-future* (future-id future)))
(with-lock-held ((lock future))
......
......@@ -2,6 +2,9 @@
(:use #:cl #:bordeaux-threads #:trivial-garbage)
(:export
;; type
#:future
;; making futures
#:*default-future-type*
#:pcall
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment