| InterlockedSpinSwapT Method |
INTERNAL!
Atomically updates the object
reference by calling
updater to get the new value.
Note that
updater may be called many times so it should be idempotent.
Remarks Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Namespace:
Akka.Util.Internal
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static T Swap<T>(
ref T reference,
Func<T, T> updater
)
where T : class
static member Swap :
reference : 'T byref *
updater : Func<'T, 'T> -> 'T when 'T : not struct
Parameters
- reference
- Type: T
TBD - updater
- Type: SystemFuncT, T
TBD
Type Parameters
- T
- TBD
Return Value
Type:
TThe updated value.
See Also