Skip to content

Can't cancel reading on stdin with Luv #373

Closed
@haesbaert

Description

@haesbaert
utop #   Eio_main.run @@ fun env ->
  let stdin = Eio.Stdenv.stdin env in
  let () =
    Eio.Fiber.first
      (fun () -> Eio.Flow.single_read stdin (Cstruct.create 1) |> ignore)
      (fun () -> Eio.traceln "second fiber done")
  in
  Eio.traceln "foo finished";;
+second fiber done

The same works with uring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions