package resource_cache

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Wrap a resource that does not natively support a has_close_started operation in a simple record to add such tracking.

Parameters

module R : Simple

Signature

module Key = R.Key
module Common_args = R.Common_args
type t
val close : t -> unit Async_kernel.Deferred.t
val close_finished : t -> unit Async_kernel.Deferred.t
val has_close_started : t -> bool

has_close_started t should return true iff close t has been called, even if close_finished has not been determined.

type resource = R.t
val underlying : t -> resource
OCaml

Innovation. Community. Security.