Skip to content

Commit daafc07

Browse files
committed
Bump to 2.6.0 and write changelog
1 parent 743b440 commit daafc07

File tree

9 files changed

+73
-20
lines changed

9 files changed

+73
-20
lines changed

CHANGES

+48-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,53 @@
1-
===== 2.5.2 (2015-04-25) =====
1+
===== 2.6.0 (2016-10-27) =====
2+
3+
====== Additions ======
4+
5+
* Lwt_stream.closed and Lwt_stream.is_closed (#223, Spiros Eliopoulos).
6+
* Lwt_switch.with_switch (#256, Thomas Leonard).
7+
* Define 'a Lwt.result as ('a, exn) result (#247, Simon Cruanes).
8+
* Lwt_condition.broadcast_exn (#241, Nicolas Ojeda Bar).
9+
* Lwt_unix.utimes (#193).
10+
11+
====== Bugfixes ======
12+
13+
* Memory leak in Lwt_unix.readdir_n (#229, diagnosed Thomas Leonard).
14+
* Memory leak in Lwt.protected (#56, #181, reported @ygrek, Mauricio
15+
Fernandez).
16+
* Lwt_switch.turn_off hook exception handling (995b704).
17+
* Handling of ENOTCONN when channels passed to handler of
18+
Lwt_io.establish_server are closed (95fb431).
19+
* Duplicate exceptions on implicit close in Lwt_io.with_connection (b1afe45).
20+
* Deadlock in Lwt_main.at_exit (#48, #114, reported Jérôme Vouillon, Vincent
21+
Bernardoff).
22+
* Performance of Lwt_preemptive.detach (#218, #219, Mauricio Fernandez).
23+
* Bad hash functions for libev loops (#146, reported Mark Christiaens).
24+
* Hash of uninitialized data in Lwt_io (#217, reported Jeremy Yallop).
25+
* Update log sections after Lwt_log.load_rules (#188, reported @rand00).
26+
* Print three digits for milliseconds in Lwt_log (#264, Fabian Hemmer).
27+
* Do not truncate Unix job notification ids in C (#277, diagnosed
28+
@stijn-devriendt).
29+
30+
====== Deprecations ======
31+
32+
* Lwt_stream.on_termination: bind on Lwt_stream.closed instead.
33+
* Lwt.make_value, Lwt.make_error: use result's Ok and Error constructors.
34+
* Lwt_pqueue, Lwt_sequence: use min-heaps and linked lists from another
35+
library (#135).
36+
* Pa_lwt, Pa_lwt_log: use Ppx_lwt.
37+
38+
====== Miscellaneous ======
39+
40+
* Update examples to use PPX syntax instead of Camlp4 (#108, Peter Zotov).
41+
* Set up Travis, AppVeyor for testing on Linux, OS X, Cygwin, and MinGW. MSVC
42+
also planned.
43+
* Large amount of local documentation fixes (Hezekiah Carty, Etienne Millon,
44+
Leo Wzukw, Sebastien Mondet, reports by others).
45+
* A bunch of new tests.
46+
47+
===== 2.5.2 (2016-04-25) =====
248

349
* Fix compatibility for 4.03 (#227)
4-
* Various documentation fixes (#199,#200,#210,)
50+
* Various documentation fixes (#199,#200,#210)
551
* Improve wildcard detection in the ppx (#198)
652
* Fix Lwt_stream: bounded_push#close wake the reader (#201)
753
* Fix infinite loop with Lwt_stream.choose (#214)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Lwt    [![version 0.11.1][version]][releases] [![BSD license][license-img]][copying] [![Manual][docs-img]][manual] [![Gitter chat][gitter-img]][gitter] [![Travis status][travis-img]][travis] [![AppVeyor status][appveyor-img]][appveyor]
1+
# Lwt    [![version 2.6.0][version]][releases] [![BSD license][license-img]][copying] [![Manual][docs-img]][manual] [![Gitter chat][gitter-img]][gitter] [![Travis status][travis-img]][travis] [![AppVeyor status][appveyor-img]][appveyor]
22

3-
[version]: https://img.shields.io/badge/version-2.5.2-blue.svg
3+
[version]: https://img.shields.io/badge/version-2.6.0-blue.svg
44
[releases]: https://github.com/ocsigen/lwt/releases
55
[license-img]: https://img.shields.io/badge/license-LGPL-blue.svg
66
[gitter-img]: https://img.shields.io/badge/chat-on_gitter-lightgrey.svg

_oasis

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
OASISFormat: 0.4
66
OCamlVersion: >= 4.01
77
Name: lwt
8-
Version: 2.5.2
8+
Version: 2.6.0
99
LicenseFile: COPYING
1010
License: LGPL-2.1 with OCaml linking exception
1111
Authors:

src/core/lwt.mli

+7-9
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,12 @@ val return_false : bool t
122122
(** [return_false = return false] *)
123123

124124
val return_ok : 'a -> ('a, _) Result.result t
125-
(** [return_ok x] is similar to [return (Ok x)], to indicate success
126-
explicitely..
127-
@since NEXT_RELEASE *)
125+
(** [return_ok x] is equivalent to [return (Ok x)].
126+
@since 2.6.0 *)
128127

129128
val return_error : 'e -> (_, 'e) Result.result t
130-
(** [return_error x] is similar to [return (Error x)], to indicate
131-
an error explicitely
132-
@since NEXT_RELEASE *)
129+
(** [return_error x] is equivalent to [return (Error x)].
130+
@since 2.6.0 *)
133131

134132
(** {2 Thread storage} *)
135133

@@ -314,15 +312,15 @@ val waiter_of_wakener : 'a u -> 'a t
314312
type +'a result = ('a, exn) Result.result
315313
(** Either a value of type ['a], either an exception.
316314
317-
This type is defined as [('a, exn) Result.result] @since NEXT_RELEASE *)
315+
This type is defined as [('a, exn) Result.result] since 2.6.0. *)
318316

319317
val make_value : 'a -> 'a result
320318
(** [value x] creates a result containing the value [x].
321-
@deprecated since NEXT_RELEASE as it corresponds to {!Result.Ok} *)
319+
@deprecated Since 2.6.0. Use {!Result.Ok} *)
322320

323321
val make_error : exn -> 'a result
324322
(** [error e] creates a result containing the exception [e].
325-
@deprecated since NEXT_RELEASE as it corresponds to {!Result.Error} *)
323+
@deprecated Since 2.6.0. Use {!Result.Error} *)
326324

327325
val of_result : 'a result -> 'a t
328326
(** Returns a thread from a result. *)

src/core/lwt_condition.mli

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ val broadcast : 'a t -> 'a -> unit
6666

6767
val broadcast_exn : 'a t -> exn -> unit
6868
(** [broadcast_exn condvar exn] fails all waiting threads with exception
69-
[exn]. *)
69+
[exn].
70+
71+
@since 2.6.0 *)

src/core/lwt_result.mli

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
(** Module [Lwt_result]: explicit error handling *)
2424

25-
(** This module provides helpers for values of type [('a, 'b) result Lwt.t] *)
25+
(** This module provides helpers for values of type [('a, 'b) result Lwt.t].
26+
The module is experimental and may change in the future. *)
2627

2728
type (+'a, +'b) t = ('a, 'b) Result.result Lwt.t
2829

src/core/lwt_stream.mli

+6-2
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,15 @@ val is_closed : 'a t -> bool
228228
(** [is_closed st] returns whether the given stream has been closed. A closed
229229
stream is not necessarily empty. It may still contain unread elements. If
230230
[is_closed s = true], then all subsequent reads until the end of the
231-
stream are guaranteed not to block. *)
231+
stream are guaranteed not to block.
232+
233+
@since 2.6.0 *)
232234

233235
val closed : 'a t -> unit Lwt.t
234236
(** [closed st] returns a thread that will sleep until the stream has been
235-
closed. *)
237+
closed.
238+
239+
@since 2.6.0 *)
236240

237241
val on_termination : 'a t -> (unit -> unit) -> unit
238242
(** [on_termination st f] executes [f] when the end of the stream [st]

src/core/lwt_switch.mli

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ val create : unit -> t
8282
val with_switch : (t -> 'a Lwt.t) -> 'a Lwt.t
8383
(** [with_switch fn] is [fn switch], where [switch] is a fresh switch
8484
that is turned off when the callback thread finishes (whether it
85-
succeeds or fails). *)
85+
succeeds or fails).
86+
87+
@since 2.6.0 *)
8688

8789
val is_on : t -> bool
8890
(** [is_on switch] returns [true] if the switch is currently on, and

src/unix/lwt_unix.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ val utimes : string -> float -> float -> unit Lwt.t
480480
[Unix.utimes]}. See also
481481
{{:http://man7.org/linux/man-pages/man3/utimes.3p.html} [utimes(3p)]}.
482482
483-
@since NEXT_RELEASE *)
483+
@since 2.6.0 *)
484484

485485
val isatty : file_descr -> bool Lwt.t
486486
(** Wrapper for [Unix.isatty] *)

0 commit comments

Comments
 (0)