@@ -2003,10 +2003,10 @@ val ignore_result : _ t -> unit
20032003
20042004 Depending on the kind of programs that you write, you may need to treat
20052005 exceptions thrown by the OCaml runtime (namely [Out_of_memory] and
2006- [Stack_overflow] differently. This is because (a) these exceptions are not
2007- reproducible (in that they are thrown at different points of your program
2008- depending on the machine that your program runs on) and (b) recovering
2009- from these errors may be impossible.
2006+ [Stack_overflow]) differently than all the other exceptions. This is because
2007+ (a) these exceptions are not reproducible (in that they are thrown at
2008+ different points of your program depending on the machine that your program
2009+ runs on) and (b) recovering from these errors may be impossible.
20102010
20112011 The helpers below allow you to change the way that Lwt handles the two OCaml
20122012 runtime exceptions [Out_of_memory] and [Stack_overflow]. *)
@@ -2016,15 +2016,15 @@ val ignore_result : _ t -> unit
20162016 immediately. *)
20172017type exception_filter
20182018
2019- (* * [catch_all_filter ] is the default filter. With it the all the exceptions
2019+ (* * [catch_filter__all ] is the default filter. With it the all the exceptions
20202020 (including [Out_of_memory] and [Stack_overflow]) are caught and transformed
20212021 into rejected promises. *)
2022- val catch_all_filter : exception_filter
2022+ val catch_filter__all : exception_filter
20232023
2024- (* * [catch_not_runtime_filter ] is a filter which lets the OCaml runtime
2024+ (* * [catch_filter__all_except_runtime ] is a filter which lets the OCaml runtime
20252025 exceptions ([Out_of_memory] and [Stack_overflow]) go through all the Lwt
20262026 abstractions and bubble all the way out of the call to [Lwt_main.run]. *)
2027- val catch_not_runtime_filter : exception_filter
2027+ val catch_filter__all_except_runtime : exception_filter
20282028
20292029(* * [set_exception_filter] sets the given exception filter globally. *)
20302030val set_exception_filter : exception_filter -> unit
0 commit comments