Click or drag to resize
AtomicReferenceTCompareAndSet Method
If Value equals [!:expected], then set the Value to [!:newValue]. Returns true if [!:newValue] was set, false otherise.

Namespace: Akka.Util
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public bool CompareAndSet(
	T expected,
	T newValue
)

Parameters

expected
Type: T

[Missing <param name="expected"/> documentation for "M:Akka.Util.AtomicReference`1.CompareAndSet(`0,`0)"]

newValue
Type: T

[Missing <param name="newValue"/> documentation for "M:Akka.Util.AtomicReference`1.CompareAndSet(`0,`0)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Akka.Util.AtomicReference`1.CompareAndSet(`0,`0)"]

See Also