prepare for 0.10
Some checks are pending
github pages / Deploy doc (push) Waiting to run
Build and Test / build (push) Waiting to run
Build and Test / build-compat (push) Waiting to run
Build and Test / format (push) Waiting to run

This commit is contained in:
Simon Cruanes 2025-11-13 20:24:53 -05:00
parent 58a0f891f7
commit 4de33f0121
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
6 changed files with 65 additions and 27 deletions

View file

@ -1,4 +1,16 @@
# 0.10
- breaking: remove `around_task` from schedulers
- breaking: remove `moonpool.fib` entirely. Please use `picos_std.structured`
if you really need structured concurrency.
- remove deprecated moonpool-io and moonpool.sync
- feat core: add `Main`, salvaged from moonpool.fib
- block signals in background threads
- refactor `chan`; fix bug in `Chan.try_push`
- fix: make `Moonpool_lwt.fut_of_lwt` idempotent
# 0.9
- breaking: require OCaml 5

View file

@ -1,13 +1,20 @@
(lang dune 3.0)
(using mdx 0.2)
(name moonpool)
(version 0.9)
(version 0.10)
(generate_opam_files true)
(source
(github c-cube/moonpool))
(authors "Simon Cruanes")
(maintainers "Simon Cruanes")
(license MIT)
;(documentation https://url/to/documentation)
@ -16,24 +23,39 @@
(name moonpool)
(synopsis "Pools of threads supported by a pool of domains")
(depends
(ocaml (>= 5.0))
(ocaml
(>= 5.0))
dune
(either (>= 1.0))
(either
(>= 1.0))
(trace :with-test)
(trace-tef :with-test)
(qcheck-core (and :with-test (>= 0.19)))
(thread-local-storage (and (>= 0.2) (< 0.3)))
(qcheck-core
(and
:with-test
(>= 0.19)))
(thread-local-storage
(and
(>= 0.2)
(< 0.3)))
(odoc :with-doc)
(hmap :with-test)
(picos (and (>= 0.5) (< 0.7)))
(picos_std (and (>= 0.5) (< 0.7)))
(picos
(and
(>= 0.5)
(< 0.7)))
(picos_std
(and
(>= 0.5)
(< 0.7)))
(mdx
(and
(>= 1.9.0)
:with-test)))
(depopts
hmap
(trace (>= 0.6)))
(trace
(>= 0.6)))
(tags
(thread pool domain futures fork-join)))
@ -42,9 +64,14 @@
(synopsis "Event loop for moonpool based on Lwt-engine (experimental)")
(allow_empty) ; on < 5.0
(depends
(moonpool (= :version))
(ocaml (>= 5.0))
(qcheck-core (and :with-test (>= 0.19)))
(moonpool
(= :version))
(ocaml
(>= 5.0))
(qcheck-core
(and
:with-test
(>= 0.19)))
(hmap :with-test)
lwt
base-unix
@ -52,5 +79,4 @@
(trace-tef :with-test)
(odoc :with-doc)))
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

View file

@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.9"
version: "0.10"
synopsis: "Event loop for moonpool based on Lwt-engine (experimental)"
maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]

View file

@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.9"
version: "0.10"
synopsis: "Pools of threads supported by a pool of domains"
maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]

View file

@ -267,7 +267,7 @@ val await : 'a t -> 'a
val yield : unit -> unit
(** Like {!Moonpool.yield}.
@since NEXT_RELEASE *)
@since 0.10 *)
(** {2 Blocking} *)

View file

@ -18,7 +18,7 @@
This module was migrated from the late [Moonpool_fib].
@since NEXT_RELEASE *)
@since 0.10 *)
val main : (Runner.t -> 'a) -> 'a
(** [main f] runs [f()] in a scope that handles effects, including