package eliom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type key
val new_key : unit -> key
val retain : ?key:key -> _ Js_of_ocaml.Js.t -> keep:_ -> unit

retain v ~keep prevents keep from being garbage collected while v is live. An optional key can be specified if one needs to remove this association later one.

val retain_generic : ?key:key -> _ -> keep:_ -> unit

retain v ~keep prevents keep from being garbage collected while v is live. An optional key can be specified if one needs to remove this association later one.

Same as retain but works with any object. More error-prone

val release : key:key -> _ -> unit

Same as retain but works with any object. More error-prone

release ~key o removes the association between the value v and the value associated to key.

val transfer : key:key -> src:_ -> dst:_ -> unit

release ~key o removes the association between the value v and the value associated to key.

transfer ~key ~src ~dst transfers the association between the value src and the value associated to key key to value dst.

OCaml

Innovation. Community. Security.