Click or drag to resize
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: 0.8.0.0 (0.8.0.0)
Syntax
public static T Swap<T>(
	ref T reference,
	Func<T, T> updater
)
where T : class

Parameters

reference
Type: T

[Missing <param name="reference"/> documentation for "M:Akka.Util.Internal.InterlockedSpin.Swap``1(``0@,System.Func{``0,``0})"]

updater
Type: SystemFuncT, T

[Missing <param name="updater"/> documentation for "M:Akka.Util.Internal.InterlockedSpin.Swap``1(``0@,System.Func{``0,``0})"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Akka.Util.Internal.InterlockedSpin.Swap``1(``0@,System.Func{``0,``0})"]

Return Value

Type: T
The updated value.
See Also