Skip to content

Commit

Permalink
fix: [Fiber.both] should be concurrent (#32)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg authored Apr 2, 2024
1 parent 8ed9c35 commit 5e9bfce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Unreleased

- Add [Fiber.Lazy]
- Make [Fiber.both] concurrent (#32, @rgrinberg)

- Add [Fiber.Lazy] (#36, #rleshchinskiy)

- Rename `Fiber.Pool.stop` to `Fiber.Pool.close` (#13, @rgrinberg)

Expand Down
6 changes: 3 additions & 3 deletions fiber/src/core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ end
open O

let both a b =
let* x = a in
let* y = b in
return (x, y)
let+ x = a
and+ y = b in
x, y
;;

let sequential_map l ~f =
Expand Down

0 comments on commit 5e9bfce

Please sign in to comment.