Skip to content

Commit 026c682

Browse files
committed
Temporarily remove ~name argument to Switch.run
1 parent 8340544 commit 026c682

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/lwt_to_direct_style/concurrency_backend.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ let eio ~eio_sw_as_fiber_var ~eio_env_as_fiber_var add_comment =
257257
in
258258
mk_apply_ident (switch_ident "run")
259259
[
260-
(Labelled (mk_loc "name"), mk_const_string "main");
260+
(* TODO: Add the [~name] argument. Currently commented-out because added in a too recent version of eio.
261+
(Labelled (mk_loc "name"), mk_const_string "main"); *)
261262
(Nolabel, fun_sw);
262263
]
263264
| None -> k

test/lwt_to_direct_style/eio-switch.t/run.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Make a writable directory tree:
4444
let () =
4545
Eio_main.run (fun env ->
4646
Fiber.with_binding Fiber_var.env env (fun () ->
47-
Switch.run ~name:"main" (fun sw ->
47+
Switch.run (fun sw ->
4848
Fiber.with_binding Fiber_var.sw sw (fun () ->
4949
(* TODO: lwt-to-direct-style: [Eio_main.run] argument used to be a [Lwt] promise and is now a [fun]. Make sure no asynchronous or IO calls are done outside of this [fun]. *)
5050
main ()))))

0 commit comments

Comments
 (0)