You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/lwt_to_direct_style/to_direct_style.t/run.t
+21-2Lines changed: 21 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -228,7 +228,7 @@ Make a writable directory tree:
228
228
Lwt_mutex.lock (line 136 column 9)
229
229
Lwt_mutex.unlock (line 137 column 9)
230
230
Lwt_mutex.with_lock (line 138 column 9)
231
-
lib/test_lwt_unix.ml: (35 occurrences)
231
+
lib/test_lwt_unix.ml: (38 occurrences)
232
232
Lwt_io (line 7 column 8)
233
233
Lwt.return (line 11 column 3)
234
234
Lwt.let* (line 10 column 3)
@@ -248,6 +248,9 @@ Make a writable directory tree:
248
248
Lwt_io.of_fd (line 22 column 13)
249
249
Lwt_io.of_fd (line 23 column 13)
250
250
Lwt_io.read_line (line 28 column 15)
251
+
Lwt_io.read (line 41 column 15)
252
+
Lwt_io.read (line 42 column 15)
253
+
Lwt_io.read (line 43 column 15)
251
254
Lwt_io.read_into (line 10 column 19)
252
255
Lwt_io.write (line 24 column 19)
253
256
Lwt_io.length (line 36 column 3)
@@ -294,8 +297,10 @@ Make a writable directory tree:
294
297
Lwt.Fail (line 147 column 5)
295
298
Lwt.let* (line 163 column 21)
296
299
Lwt.Fail (line 179 column 9)
297
-
Warning:lib/test_lwt_unix.ml:1 occurrences have not been rewritten.
300
+
Warning:lib/test_lwt_unix.ml:3 occurrences have not been rewritten.
298
301
Lwt_io.stdout (line 26 column 33)
302
+
Lwt_io.read (line 42 column 15)
303
+
Lwt_io.read (line 43 column 15)
299
304
Warning:lib/test.mli:2 occurrences have not been rewritten.
300
305
Lwt_mutex.t (line 2 column 10)
301
306
Lwt_mutex.t (line 3 column 10)
@@ -772,3 +777,17 @@ Make a writable directory tree:
772
777
(Eio.Path.( / ) env#cwd
773
778
(* TODO: lwt-to-direct-style: [env] must be propagated from the main loop *)
774
779
fname)
780
+
781
+
let _f chan = Eio.Buf_read.take_all chan
782
+
783
+
let _f chan =
784
+
Lwt_io.read
785
+
(* TODO: lwt-to-direct-style: Eio doesn't have a direct equivalent of [Lwt_io.read~count]. Rewrite the code using [Eio.Buf_read]'s lower level API or switch to unbuffered IO. *)
786
+
(* TODO: lwt-to-direct-style: Eio doesn't have a direct equivalent of [Lwt_io.read~count]. Rewrite the code using [Eio.Buf_read]'s lower level API or switch to unbuffered IO. *)
787
+
~count:42 chan
788
+
789
+
let _f chan =
790
+
Lwt_io.read
791
+
(* TODO: lwt-to-direct-style: Eio doesn't have a direct equivalent of [Lwt_io.read~count]. Rewrite the code using [Eio.Buf_read]'s lower level API or switch to unbuffered IO. *)
792
+
(* TODO: lwt-to-direct-style: Eio doesn't have a direct equivalent of [Lwt_io.read~count]. Rewrite the code using [Eio.Buf_read]'s lower level API or switch to unbuffered IO. *)
0 commit comments