Module Extended.ScopedSource
An encapsulated value accessible for the duration of the current region.
A value of type 'a Scoped.t provides uncontended access to the underlying 'a over a local scope.
with_ a ~f calls f with a local Scoped.t representing local access to a, which lives in the current capsule.
Source
val get :
'a t @ local ->
f:('a -> 'b @ portable contended) @ local once portable ->
'b @ portable contendedget t ~f computes a value using the data accessible via t.
Like get, but for for functions that return unit.
Construct a new t by mapping a function over the referenced value.