prepare for 0.7

This commit is contained in:
Simon Cruanes 2024-09-10 08:54:07 -04:00
parent d7c8df43d9
commit 0d8767f45f
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
11 changed files with 21 additions and 14 deletions

View file

@ -1,4 +1,11 @@
# 0.7
- add `Moonpool_fiber.spawn_top_ignore`
- add `moonpool-io`, based on `picos_io` (still very experimental)
- move to picos as the foundation layer for concurrency primitives (#30)
- move to `thread-local-storage` 0.2 with get/set API
# 0.6 # 0.6
- breaking: remove `Immediate_runner` (bug prone and didn't - breaking: remove `Immediate_runner` (bug prone and didn't

View file

@ -2,7 +2,7 @@
(using mdx 0.2) (using mdx 0.2)
(name moonpool) (name moonpool)
(version 0.6) (version 0.7)
(generate_opam_files true) (generate_opam_files true)
(source (source
(github c-cube/moonpool)) (github c-cube/moonpool))
@ -52,7 +52,7 @@
(package (package
(name moonpool-io) (name moonpool-io)
(synopsis "Async IO for moonpool, relying on picos") (synopsis "Async IO for moonpool, relying on picos (experimental)")
(allow_empty) ; on < 5.0 (allow_empty) ; on < 5.0
(depends (depends
(moonpool (= :version)) (moonpool (= :version))

View file

@ -1,7 +1,7 @@
# This file is generated by dune, edit dune-project instead # This file is generated by dune, edit dune-project instead
opam-version: "2.0" opam-version: "2.0"
version: "0.6" version: "0.7"
synopsis: "Async IO for moonpool, relying on picos" synopsis: "Async IO for moonpool, relying on picos (experimental)"
maintainer: ["Simon Cruanes"] maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"] authors: ["Simon Cruanes"]
license: "MIT" license: "MIT"

View file

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

View file

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

View file

@ -1,6 +1,6 @@
(** Exception with backtrace. (** Exception with backtrace.
Type changed @since NEXT_RELEASE Type changed @since 0.7
@since 0.6 *) @since 0.6 *)
@ -26,4 +26,4 @@ type nonrec 'a result = ('a, t) result
val unwrap : 'a result -> 'a val unwrap : 'a result -> 'a
(** [unwrap (Ok x)] is [x], [unwrap (Error ebt)] re-raises [ebt]. (** [unwrap (Ok x)] is [x], [unwrap (Error ebt)] re-raises [ebt].
@since NEXT_RELEASE *) @since 0.7 *)

View file

@ -39,7 +39,7 @@ val on_result_ignore : _ t -> (Exn_bt.t option -> unit) -> unit
when [fut] is set; when [fut] is set;
or calls [f] immediately if [fut] is already set. or calls [f] immediately if [fut] is already set.
It does not pass the result, only a success/error signal. It does not pass the result, only a success/error signal.
@since NEXT_RELEASE *) @since 0.7 *)
exception Already_fulfilled exception Already_fulfilled

View file

@ -71,7 +71,7 @@ val spawn_on_current_runner : (unit -> 'a) -> 'a Fut.t
val get_current_runner : unit -> Runner.t option val get_current_runner : unit -> Runner.t option
(** See {!Runner.get_current_runner} (** See {!Runner.get_current_runner}
@since NEXT_RELEASE *) @since 0.7 *)
[@@@ifge 5.0] [@@@ifge 5.0]
@ -222,7 +222,7 @@ module Private : sig
module Worker_loop_ = Worker_loop_ module Worker_loop_ = Worker_loop_
(** Worker loop. This is useful to implement custom runners, it (** Worker loop. This is useful to implement custom runners, it
should run on each thread of the runner. should run on each thread of the runner.
@since NEXT_RELEASE *) @since 0.7 *)
module Domain_ = Domain_ module Domain_ = Domain_
(** Utils for domains *) (** Utils for domains *)

View file

@ -1,5 +1,5 @@
(** Triggers from picos (** Triggers from picos
@since NEXT_RELEASE *) @since 0.7 *)
include Picos.Trigger include Picos.Trigger

View file

@ -150,4 +150,4 @@ val spawn_ignore : ?protect:bool -> (unit -> _) -> unit
val spawn_top_ignore : on:Runner.t -> (unit -> _) -> unit val spawn_top_ignore : on:Runner.t -> (unit -> _) -> unit
(** Like {!spawn_top} but ignores the result. (** Like {!spawn_top} but ignores the result.
@since NEXT_RELEASE *) @since 0.7 *)

View file

@ -21,7 +21,7 @@
This lock is based on {!Picos_sync.Mutex} so it is [await]-safe. This lock is based on {!Picos_sync.Mutex} so it is [await]-safe.
@since NEXT_RELEASE *) @since 0.7 *)
type 'a t type 'a t
(** A value protected by a cooperative mutex *) (** A value protected by a cooperative mutex *)