package ecaml
Module Ecaml.RefSource
include module type of struct include Core.Ref end
include Bin_prot.Binable.S_local1 with type 'a t := 'a t
include Ppx_quickcheck_runtime.Quickcheckable.S1 with type 'a t := 'a t
include Typerep_lib.Typerepable.S1 with type 'a t := 'a t
Source
val typerep_of_t :
'a Typerep_lib.Std_internal.Typerep.t ->
'a t Typerep_lib.Std_internal.Typerep.tset_temporarily t a ~f sets t to a, calls f (), and then restores t to its value prior to set_temporarily being called, whether f returns or raises.
sets_temporarily [ ...; T (ti, ai); ... ] ~f sets each ti to ai, calls f (), and then restores all ti to their value prior to sets_temporarily being called, whether f returns or raises.
Source
val set_temporarily_async :
'a t ->
'a ->
f:(unit -> 'b Async_kernel.Deferred.t) ->
'b Async_kernel.Deferred.t