package resource_cache

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

Module Rpc_connection_resource.MakeSource

Parameters

module R : Rpc_resource

Signature

Sourcemodule Common_args = Core.Unit
Sourcetype t = R.t t
Sourceval close : t -> unit Async_kernel.Deferred.t
Sourceval close_finished : t -> unit Async_kernel.Deferred.t

When close_finished is determined, the resource will not be reused by a new job. If no job is currently using this resource, the resource will be dropped from the cache immediately. If there is a currently running job with this resource, the resource will be dropped from the cache once that job finishes.

Sourceval 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.

OCaml

Innovation. Community. Security.