Table of Contents

Class AsyncManualResetEventSlim

Namespace
CounterpointCollective.Threading
Assembly
CounterpointCollective.Threading.dll

Represents a lightweight, asynchronous manual reset event.

public class AsyncManualResetEventSlim
Inheritance
AsyncManualResetEventSlim
Inherited Members

Remarks

This class provides a thread-safe, asynchronous alternative to ManualResetEvent. It allows waiting tasks to proceed when the event is set, until Reset() is called.

Methods

Reset()

Resets the event to the non-signaled state.

public void Reset()

Remarks

After calling Reset(), tasks that call WaitAsync() will again wait until Set() is called.

Set()

Sets the event, allowing all waiting tasks to complete.

public void Set()

WaitAsync()

Asynchronously waits for the event to be set.

public Task WaitAsync()

Returns

Task

A task that completes when the event is set.