Source

spotlib / lib / once.mli

The default branch has multiple heads

Full commit
type 'a t

exception Already_initialized

val create : unit -> 'a t

val set : 'a t -> 'a -> unit
(** Raises Already_initialized when already set *)

val get : 'a t -> 'a option