Skip to content

Commit

Permalink
feat(cohttp-async): add [close_finished] in [Connection] (#1067)
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Kurowski <[email protected]>
  • Loading branch information
crackcomm committed Jun 30, 2024
1 parent 63c665b commit b988f24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cohttp-async/src/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module Connection = struct
Throttle.kill t;
Throttle.cleaned t

let close_finished t = Throttle.cleaned t
let is_closed t = Throttle.is_dead t

let request ?(body = Body.empty) t req =
Expand Down
1 change: 1 addition & 0 deletions cohttp-async/src/client.mli
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module Connection : sig
t Async_kernel.Deferred.t

val close : t -> unit Async_kernel.Deferred.t
val close_finished : t -> unit Async_kernel.Deferred.t
val is_closed : t -> bool

val request :
Expand Down

0 comments on commit b988f24

Please sign in to comment.