No matching definitions.

thread-pool/future

src/thread-pool/future.tur

Future<R> result cells for fan-out / await (FUT-V0).

Since: TP2

defopaque

Future

(Future [R] :ptr<void>)

an opaque, linear handle to a one-shot result cell parameterised

Since: TP2

defn

pool-submit-future

(pool-submit-future [T R])

submit (item, work) to the pool; get a (Future R).

poolborrowed (Pool T) handle.
iteman owned T handed to `work`.
work(fn [T] R) run on a worker; must outlive the await.

Since: TP2

defn

future-await

(future-await [R])

block until the result is set, return it, consume the

Since: TP2

defn

future-try

(future-try [R])

non-blocking peek: (some R) if the result is ready, else

Since: TP2

defn

future-cancel

(future-cancel [R])

consume the Future without awaiting; drop the awaiter's

Since: TP2

Internal definitions
future-set?
future-peek