Skip to content

Commit

Permalink
prepare for 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Sep 10, 2024
1 parent d7c8df4 commit 0d8767f
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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

- breaking: remove `Immediate_runner` (bug prone and didn't
Expand Down
4 changes: 2 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(using mdx 0.2)

(name moonpool)
(version 0.6)
(version 0.7)
(generate_opam_files true)
(source
(github c-cube/moonpool))
Expand Down Expand Up @@ -52,7 +52,7 @@

(package
(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
(depends
(moonpool (= :version))
Expand Down
4 changes: 2 additions & 2 deletions moonpool-io.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
synopsis: "Async IO for moonpool, relying on picos"
version: "0.7"
synopsis: "Async IO for moonpool, relying on picos (experimental)"
maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion moonpool-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
version: "0.7"
synopsis: "Event loop for moonpool based on Lwt-engine (experimental)"
maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]
Expand Down
2 changes: 1 addition & 1 deletion moonpool.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
version: "0.7"
synopsis: "Pools of threads supported by a pool of domains"
maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]
Expand Down
4 changes: 2 additions & 2 deletions src/core/exn_bt.mli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(** Exception with backtrace.
Type changed @since NEXT_RELEASE
Type changed @since 0.7
@since 0.6 *)

Expand All @@ -26,4 +26,4 @@ type nonrec 'a result = ('a, t) result

val unwrap : 'a result -> 'a
(** [unwrap (Ok x)] is [x], [unwrap (Error ebt)] re-raises [ebt].
@since NEXT_RELEASE *)
@since 0.7 *)
2 changes: 1 addition & 1 deletion src/core/fut.mli
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ val on_result_ignore : _ t -> (Exn_bt.t option -> unit) -> unit
when [fut] is set;
or calls [f] immediately if [fut] is already set.
It does not pass the result, only a success/error signal.
@since NEXT_RELEASE *)
@since 0.7 *)

exception Already_fulfilled

Expand Down
4 changes: 2 additions & 2 deletions src/core/moonpool.mli
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ val spawn_on_current_runner : (unit -> 'a) -> 'a Fut.t

val get_current_runner : unit -> Runner.t option
(** See {!Runner.get_current_runner}
@since NEXT_RELEASE *)
@since 0.7 *)

[@@@ifge 5.0]

Expand Down Expand Up @@ -222,7 +222,7 @@ module Private : sig
module Worker_loop_ = Worker_loop_
(** Worker loop. This is useful to implement custom runners, it
should run on each thread of the runner.
@since NEXT_RELEASE *)
@since 0.7 *)

module Domain_ = Domain_
(** Utils for domains *)
Expand Down
2 changes: 1 addition & 1 deletion src/core/trigger.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(** Triggers from picos
@since NEXT_RELEASE *)
@since 0.7 *)

include Picos.Trigger

Expand Down
2 changes: 1 addition & 1 deletion src/fib/fiber.mli
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ val spawn_ignore : ?protect:bool -> (unit -> _) -> unit

val spawn_top_ignore : on:Runner.t -> (unit -> _) -> unit
(** Like {!spawn_top} but ignores the result.
@since NEXT_RELEASE *)
@since 0.7 *)
2 changes: 1 addition & 1 deletion src/sync/lock.mli
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
This lock is based on {!Picos_sync.Mutex} so it is [await]-safe.
@since NEXT_RELEASE *)
@since 0.7 *)

type 'a t
(** A value protected by a cooperative mutex *)
Expand Down

0 comments on commit 0d8767f

Please sign in to comment.