mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-07 03:35:36 -05:00
readme
This commit is contained in:
parent
456a31c939
commit
2bbb4185a4
1 changed files with 11 additions and 2 deletions
13
README.md
13
README.md
|
|
@ -10,8 +10,17 @@ The rationale is that we should not have more domains than cores, so
|
||||||
it's easier to pre-allocate exactly that many domains, and run more flexible
|
it's easier to pre-allocate exactly that many domains, and run more flexible
|
||||||
thread pools on top.
|
thread pools on top.
|
||||||
|
|
||||||
In addition, `Moonpool.Fut` provides futures/promises that execute
|
In addition, some concurrency and parallelism primitives are provided:
|
||||||
on these thread pools. The futures are thread safe.
|
- `Moonpool.Fut` provides futures/promises that execute
|
||||||
|
on these thread pools. The futures are thread safe.
|
||||||
|
- `Moonpool.Chan` provides simple cooperative and thread-safe channels
|
||||||
|
to use within pool-bound tasks. They're essentially re-usable futures.
|
||||||
|
|
||||||
|
On OCaml 5 (meaning there's actual domains and effects, not just threads),
|
||||||
|
a `Fut.await` primitive is provided. It's simpler and more powerful
|
||||||
|
than the monadic combinators.
|
||||||
|
- `Moonpool.Fork_join` provides the fork-join parallelism primitives
|
||||||
|
to use within tasks running in the pool.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue