Table of Contents

Interface IAsyncUpdateHelper

Namespace
TCSystem.Thread
Assembly
TCSystem.Thread.dll

Coordinates mutually exclusive updates and exposes whether update work is waiting.

public interface IAsyncUpdateHelper
Extension Methods

Properties

IsUpdatePending

Gets whether any update is waiting to acquire the lock.

bool IsUpdatePending { get; }

Property Value

bool

ShouldStop

Gets whether a stop-requesting update is waiting to acquire the lock.

bool ShouldStop { get; }

Property Value

bool

Methods

BeginUpdateAsync()

Marks a stop-requesting update as pending and asynchronously acquires the update lock.

Task BeginUpdateAsync()

Returns

Task

EndUpdate()

Releases the update lock.

void EndUpdate()

WaitAsync()

Marks an ordinary update as pending and asynchronously acquires the update lock.

Task WaitAsync()

Returns

Task