mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-05 19:00:33 -05:00
prepare for 0.10
This commit is contained in:
parent
58a0f891f7
commit
4de33f0121
6 changed files with 65 additions and 27 deletions
12
CHANGES.md
12
CHANGES.md
|
|
@ -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
|
||||
|
|
|
|||
72
dune-project
72
dune-project
|
|
@ -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,41 +23,60 @@
|
|||
(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)))
|
||||
hmap
|
||||
(trace
|
||||
(>= 0.6)))
|
||||
(tags
|
||||
(thread pool domain futures fork-join)))
|
||||
|
||||
(package
|
||||
(name moonpool-lwt)
|
||||
(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)))
|
||||
(hmap :with-test)
|
||||
lwt
|
||||
base-unix
|
||||
(trace :with-test)
|
||||
(trace-tef :with-test)
|
||||
(odoc :with-doc)))
|
||||
|
||||
(name moonpool-lwt)
|
||||
(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)))
|
||||
(hmap :with-test)
|
||||
lwt
|
||||
base-unix
|
||||
(trace :with-test)
|
||||
(trace-tef :with-test)
|
||||
(odoc :with-doc)))
|
||||
|
||||
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ val await : 'a t -> 'a
|
|||
|
||||
val yield : unit -> unit
|
||||
(** Like {!Moonpool.yield}.
|
||||
@since NEXT_RELEASE *)
|
||||
@since 0.10 *)
|
||||
|
||||
(** {2 Blocking} *)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue