Show / Hide Table of Contents

Delegate Atomic<T>.Updater

Represents atomic update action.

Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public delegate void Atomic<T>.Updater(ref T current)
Parameters
Type Name Description
T current

The value to update.

Remarks

The atomic update action should side-effect free.

Constructors

View Source

Updater(object, nint)

Declaration
public Updater(object @object, nint method)
Parameters
Type Name Description
object object
nint method

Methods

View Source

BeginInvoke(ref T, AsyncCallback, object)

Declaration
public virtual IAsyncResult BeginInvoke(ref T current, AsyncCallback callback, object @object)
Parameters
Type Name Description
T current
AsyncCallback callback
object object
Returns
Type Description
IAsyncResult
View Source

EndInvoke(ref T, IAsyncResult)

Declaration
public virtual void EndInvoke(ref T current, IAsyncResult result)
Parameters
Type Name Description
T current
IAsyncResult result
View Source

Invoke(ref T)

Declaration
public virtual void Invoke(ref T current)
Parameters
Type Name Description
T current

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
DelegateHelpers.ChangeType<TDelegate>(Delegate)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾