Commit graph

22 commits

Author SHA1 Message Date
Simon Cruanes
aa0dea3e34
add Fut.{reify_error,bind_reify_error} 2023-07-26 16:22:42 -04:00
Simon Cruanes
6c73afbe5b
perf: optimize Fut.for_ a bit
remove intermediate array.
2023-07-10 11:00:34 -04:00
Simon Cruanes
b07d460b3f
port cpp.ml from containers, replace previous codegen with it
now OCaml 5-only features are truly available only on OCaml 5, instead
of just relying on the user reading the docstring.
2023-07-09 19:49:24 -04:00
Simon Cruanes
45838d9607 fix: in fork-join, start sub-tasks within a handler 2023-07-05 21:55:00 -04:00
Simon Cruanes
e4b159c695
fut: fix warnings 2023-06-24 15:05:56 -04:00
Simon Cruanes
1d23d2d7a1
rename Fut.await_exn to Fut.await 2023-06-20 22:43:33 -04:00
Simon Cruanes
4fd6154b56
refactor suspend
do not wrap each step in a new handler; using Effects.Deep we only wrap
the entrypoint of the task, and subsequent `continue` get scheduled
as-is.
2023-06-20 22:43:15 -04:00
Simon Cruanes
e26029ab90
feat: add Fut.await and Fut.await_exn for OCaml >= 5.0
this uses suspension (based on `Suspend_`) to wait for completion of the
future.
2023-06-20 22:43:13 -04:00
Simon Cruanes
b8588f2d65
feat: add Fut.for_list 2023-06-15 11:59:10 -04:00
Simon Cruanes
d74c6da3fa
fix(fut): fix bug when calling wait_list [] 2023-06-15 11:58:55 -04:00
Simon Cruanes
d60bf3828b
fix: join_array on arrays of length=1 had a bound error 2023-06-15 11:42:13 -04:00
Simon Cruanes
f76b713556
add Fut.is_done 2023-06-15 10:24:20 -04:00
Simon Cruanes
debdc8fc31
add Fut.for_array to easily iterate on an array in parallel 2023-06-14 11:38:01 -04:00
Simon Cruanes
dd5a177a5f
add Fut.get_or_fail{,_exn} 2023-06-14 11:33:24 -04:00
Simon Cruanes
d766b362f1
feat fut: add infix, builds a INFIX as a 1st class module 2023-06-12 22:06:48 -04:00
Simon Cruanes
7c853861d8
feat fut: add join 2023-06-12 22:06:43 -04:00
Simon Cruanes
0177d6aee7
fix fut: actually run all map/bind callbacks if pool is provided 2023-06-12 22:06:18 -04:00
Simon Cruanes
5e9470b750
comment 2023-06-11 00:06:50 -04:00
Simon Cruanes
d2521472c0
refactor: rename little blocking queue 2023-06-08 14:22:35 -04:00
Simon Cruanes
259fee2722
perf fut: use Domain_.relax in spin loops 2023-06-08 00:07:54 -04:00
Simon Cruanes
bd1ada40d4
Fut: add Infix_local 2023-06-06 23:34:06 -04:00
Simon Cruanes
d87dff529d
split into multiple files 2023-06-01 22:04:06 -04:00