Skip to content

Commit

Permalink
Revert "lazy-ify libev backend query to avoid initialisation error"
Browse files Browse the repository at this point in the history
This reverts commit 8d179bf.
  • Loading branch information
mefyl committed Oct 3, 2024
1 parent 30846c0 commit d1bee23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/unix/lwt_engine.ml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class libev ?(backend=Ev_backend.default) () = object
val loop = ev_init backend
method loop = loop

method backend = lazy (ev_backend loop)
method backend = ev_backend loop

method private cleanup = ev_stop loop

Expand Down
6 changes: 3 additions & 3 deletions src/unix/lwt_engine.mli
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ end
class libev : ?backend:Ev_backend.t -> unit -> object
inherit t

method backend : Ev_backend.t Lazy.t
method backend : Ev_backend.t
(** The backend picked by libev. *)

val loop : ev_loop
Expand Down Expand Up @@ -213,7 +213,7 @@ sig
class libev_1 : object
inherit t
val loop : ev_loop
method backend : Ev_backend.t Lazy.t
method backend : Ev_backend.t
method loop : ev_loop
end
[@@ocaml.deprecated
Expand All @@ -228,7 +228,7 @@ sig
class libev_2 : ?backend:Ev_backend.t -> unit -> object
inherit t
val loop : ev_loop
method backend : Ev_backend.t Lazy.t
method backend : Ev_backend.t
method loop : ev_loop
end
[@@ocaml.deprecated
Expand Down

0 comments on commit d1bee23

Please sign in to comment.