diff --git a/dune-project b/dune-project index fc04001..d2d4a3c 100644 --- a/dune-project +++ b/dune-project @@ -12,7 +12,7 @@ (synopsis "Run Lwt code within Eio") (description "An Lwt engine that allows running Lwt within an Eio event loop.") (depends - (eio (>= 0.3)) + (eio (>= 0.7)) lwt (mdx (and (>= 1.10.0) :with-test)) (eio_main :with-test))) diff --git a/examples/chat.ml b/examples/chat.ml index e98540f..78171bc 100644 --- a/examples/chat.ml +++ b/examples/chat.ml @@ -38,7 +38,7 @@ module Eio_server = struct try while true do let buf = Cstruct.create 100 in - let len = Eio.Flow.read flow buf in + let len = Eio.Flow.single_read flow buf in Stream.add prod (Cstruct.to_string buf ~len) done with End_of_file -> diff --git a/lwt_eio.opam b/lwt_eio.opam index 479f170..41bd256 100644 --- a/lwt_eio.opam +++ b/lwt_eio.opam @@ -11,7 +11,7 @@ doc: "https://ocaml-multicore.github.io/lwt_eio" bug-reports: "https://github.com/ocaml-multicore/lwt_eio/issues" depends: [ "dune" {>= "2.9"} - "eio" {>= "0.3"} + "eio" {>= "0.7"} "lwt" "mdx" {>= "1.10.0" & with-test} "eio_main" {with-test}