package ocsigenserver

  1. Overview
  2. Docs
type 'a t
type 'a node
val create : ?timer:float -> int -> 'a t
val add : 'a -> 'a t -> 'a option
val remove : 'a node -> unit
val up : 'a node -> unit
val newest : 'a t -> 'a node option
val oldest : 'a t -> 'a node option
val size : 'a t -> int
val maxsize : 'a t -> int
val value : 'a node -> 'a
val get_timer : 'a t -> float option
val list_of : 'a node -> 'a t option
val remove_n_oldest : 'a t -> int -> 'a list
val fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
val fold_back : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
val lwt_fold : ('b -> 'a -> 'b Lwt.t) -> 'b -> 'a t -> 'b Lwt.t
val lwt_fold_back : ('b -> 'a -> 'b Lwt.t) -> 'b -> 'a t -> 'b Lwt.t
val move : 'a node -> 'a t -> 'a option
val set_maxsize : 'a t -> int -> 'a list
val set_finaliser_before : ('a node -> unit) -> 'a t -> unit
val get_finaliser_before : 'a t -> 'a node -> unit
val set_finaliser_after : ('a node -> unit) -> 'a t -> unit
val get_finaliser_after : 'a t -> 'a node -> unit
OCaml

Innovation. Community. Security.