Skip to content

Commit 4de33f0

Browse files
committed
prepare for 0.10
1 parent 58a0f89 commit 4de33f0

File tree

6 files changed

+65
-27
lines changed

6 files changed

+65
-27
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11

2+
# 0.10
3+
4+
- breaking: remove `around_task` from schedulers
5+
- breaking: remove `moonpool.fib` entirely. Please use `picos_std.structured`
6+
if you really need structured concurrency.
7+
- remove deprecated moonpool-io and moonpool.sync
8+
9+
- feat core: add `Main`, salvaged from moonpool.fib
10+
- block signals in background threads
11+
- refactor `chan`; fix bug in `Chan.try_push`
12+
- fix: make `Moonpool_lwt.fut_of_lwt` idempotent
13+
214
# 0.9
315

416
- breaking: require OCaml 5

dune-project

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
(lang dune 3.0)
2+
23
(using mdx 0.2)
34

45
(name moonpool)
5-
(version 0.9)
6+
7+
(version 0.10)
8+
69
(generate_opam_files true)
10+
711
(source
812
(github c-cube/moonpool))
13+
914
(authors "Simon Cruanes")
15+
1016
(maintainers "Simon Cruanes")
17+
1118
(license MIT)
1219

1320
;(documentation https://url/to/documentation)
@@ -16,41 +23,60 @@
1623
(name moonpool)
1724
(synopsis "Pools of threads supported by a pool of domains")
1825
(depends
19-
(ocaml (>= 5.0))
26+
(ocaml
27+
(>= 5.0))
2028
dune
21-
(either (>= 1.0))
29+
(either
30+
(>= 1.0))
2231
(trace :with-test)
2332
(trace-tef :with-test)
24-
(qcheck-core (and :with-test (>= 0.19)))
25-
(thread-local-storage (and (>= 0.2) (< 0.3)))
33+
(qcheck-core
34+
(and
35+
:with-test
36+
(>= 0.19)))
37+
(thread-local-storage
38+
(and
39+
(>= 0.2)
40+
(< 0.3)))
2641
(odoc :with-doc)
2742
(hmap :with-test)
28-
(picos (and (>= 0.5) (< 0.7)))
29-
(picos_std (and (>= 0.5) (< 0.7)))
43+
(picos
44+
(and
45+
(>= 0.5)
46+
(< 0.7)))
47+
(picos_std
48+
(and
49+
(>= 0.5)
50+
(< 0.7)))
3051
(mdx
3152
(and
3253
(>= 1.9.0)
3354
:with-test)))
3455
(depopts
35-
hmap
36-
(trace (>= 0.6)))
56+
hmap
57+
(trace
58+
(>= 0.6)))
3759
(tags
3860
(thread pool domain futures fork-join)))
3961

4062
(package
41-
(name moonpool-lwt)
42-
(synopsis "Event loop for moonpool based on Lwt-engine (experimental)")
43-
(allow_empty) ; on < 5.0
44-
(depends
45-
(moonpool (= :version))
46-
(ocaml (>= 5.0))
47-
(qcheck-core (and :with-test (>= 0.19)))
48-
(hmap :with-test)
49-
lwt
50-
base-unix
51-
(trace :with-test)
52-
(trace-tef :with-test)
53-
(odoc :with-doc)))
54-
63+
(name moonpool-lwt)
64+
(synopsis "Event loop for moonpool based on Lwt-engine (experimental)")
65+
(allow_empty) ; on < 5.0
66+
(depends
67+
(moonpool
68+
(= :version))
69+
(ocaml
70+
(>= 5.0))
71+
(qcheck-core
72+
(and
73+
:with-test
74+
(>= 0.19)))
75+
(hmap :with-test)
76+
lwt
77+
base-unix
78+
(trace :with-test)
79+
(trace-tef :with-test)
80+
(odoc :with-doc)))
5581

5682
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

moonpool-lwt.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.9"
3+
version: "0.10"
44
synopsis: "Event loop for moonpool based on Lwt-engine (experimental)"
55
maintainer: ["Simon Cruanes"]
66
authors: ["Simon Cruanes"]

moonpool.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.9"
3+
version: "0.10"
44
synopsis: "Pools of threads supported by a pool of domains"
55
maintainer: ["Simon Cruanes"]
66
authors: ["Simon Cruanes"]

src/core/fut.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ val await : 'a t -> 'a
267267

268268
val yield : unit -> unit
269269
(** Like {!Moonpool.yield}.
270-
@since NEXT_RELEASE *)
270+
@since 0.10 *)
271271

272272
(** {2 Blocking} *)
273273

src/core/main.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
This module was migrated from the late [Moonpool_fib].
2020
21-
@since NEXT_RELEASE *)
21+
@since 0.10 *)
2222

2323
val main : (Runner.t -> 'a) -> 'a
2424
(** [main f] runs [f()] in a scope that handles effects, including

0 commit comments

Comments
 (0)