mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
prepare 0.22
This commit is contained in:
parent
331d87e6a9
commit
e8cd571005
5 changed files with 11 additions and 4 deletions
|
|
@ -1,5 +1,12 @@
|
|||
= Changelog
|
||||
|
||||
== 0.22
|
||||
|
||||
- threads/CCLock: add `try_with_lock` to wrap `Mutex.try_lock`
|
||||
- Add `CCMultiSet.remove_all`
|
||||
- document errors in `CCIO` (close #86)
|
||||
- use the new qtest/qcheck
|
||||
|
||||
== 0.21
|
||||
|
||||
- (breaking) make default `start`/`stop` arguments empty in printers (#82)
|
||||
|
|
|
|||
2
_oasis
2
_oasis
|
|
@ -1,6 +1,6 @@
|
|||
OASISFormat: 0.4
|
||||
Name: containers
|
||||
Version: 0.21
|
||||
Version: 0.22
|
||||
Homepage: https://github.com/c-cube/ocaml-containers
|
||||
Authors: Simon Cruanes
|
||||
License: BSD-2-clause
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ module type S = sig
|
|||
|
||||
val remove_all : t -> elt -> t
|
||||
(** [remove_all set x] removes all occurrences of [x] from [set]
|
||||
@since NEXT_RELEASE *)
|
||||
@since 0.22 *)
|
||||
|
||||
val update : t -> elt -> (int -> int) -> t
|
||||
(** [update set x f] calls [f n] where [n] is the current multiplicity
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ module type S = sig
|
|||
|
||||
val remove_all : t -> elt -> t
|
||||
(** [remove_all set x] removes all occurrences of [x] from [set]
|
||||
@since NEXT_RELEASE *)
|
||||
@since 0.22 *)
|
||||
|
||||
val update : t -> elt -> (int -> int) -> t
|
||||
(** [update set x f] calls [f n] where [n] is the current multiplicity
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ val try_with_lock : 'a t -> ('a -> 'b) -> 'b option
|
|||
(** [try_with_lock l f] runs [f x] in a critical section if [l] is not
|
||||
locked. [x] is the value protected by the lock [l]. If [f x]
|
||||
fails, [try_with_lock l f] fails too but the lock is released
|
||||
@since NEXT_RELEASE *)
|
||||
@since 0.22 *)
|
||||
|
||||
(** Type allowing to manipulate the lock as a reference
|
||||
@since 0.13 *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue