Note: very experimental and may not work as intended :-) See test/bench/koka/binarytrees.kk for example usage.
test/bench/koka/binarytrees.kk
A promisestd/os/task/promise: V -> V<a> can be awaited for a result.
promisestd/os/task/promise: V -> V<a>
await
Await the result of a promise.
Spark a pure computation in a separate thread of control.
Await the result of a list of promises.
Run a list of pure computations in parallel.
Experimental: Parallel tasks.
Note: very experimental and may not work as intended :-) See
test/bench/koka/binarytrees.kk
for example usage.