Commit graph

6 commits

Author SHA1 Message Date
Simon Cruanes
0f0b887f32
feat runner: add run_async_batch
This enables optimizations for the case where we schedule a batch of
tasks all at once. Scheduling a batch might cost fewer critical
sections or wakeup checks than scheduling tasks one by one.
2023-10-29 21:13:20 -04:00
Simon Cruanes
a89c0ce4f2
breaking: make Runner.t abstract 2023-10-25 21:59:22 -04:00
Simon Cruanes
8e9628ac81
prepare for 0.3 2023-07-16 23:36:34 -04:00
Simon Cruanes
12df71c3ab
expose Suspend_ and its internal effect with an unstability alert 2023-07-09 19:49:27 -04:00
Simon Cruanes
39525af7ac
add documentation; expose Runner.For_runner_implementors.Suspend_ 2023-07-09 19:49:26 -04:00
Simon Cruanes
76ca0f2d88
feat: add Runner, change Pool to produce a Runner.t
futures, chans, etc. should use the `Runner.t` abstraction
and not depend on the exact pool implementation to run tasks.

For now `Pool.create` is the only implementation of a runner, but now
it's possible to implement alternatives.
2023-07-09 19:49:25 -04:00