package picos

  1. Overview
  2. Docs

Resource type.

A resource that must be explicitly disposed.

type t = Unix.file_descr

Represents a disposable resource.

val equal : t -> t -> bool

equal resource1 resource2 determines whether resource1 and resource2 are one and the same.

val hash : t -> int

hash resource computes the hash value for resource.

val dispose : t -> unit

dispose resource releases the resource.

⚠️ The physical resource value may be reused only after dispose has been called on it.

OCaml

Innovation. Community. Security.