Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib_eio/pool.ml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ let run_new_and_dispose t f =
t.dispose x;
Printexc.raise_with_backtrace ex bt

let use t ?(never_block=false) f =
let use ?(never_block=false) t f =
let segment, cell = Q.next_suspend t.q in
match Atomic.get cell with
| Finished | Request _ -> assert false
Expand Down
2 changes: 1 addition & 1 deletion lib_eio/pool.mli
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ val create :
If it raises, the exception is passed on to the user,
but resource is still considered to have been disposed. *)

val use : 'a t -> ?never_block:bool -> ('a -> 'b) -> 'b
val use : ?never_block:bool -> 'a t -> ('a -> 'b) -> 'b
(** [use t fn] waits for some resource [x] to be available and then runs [f x].
Afterwards (on success or error), [x] is returned to the pool.

Expand Down