C# Class FASTER.core.AsyncCountDown

Offers reactivity about when a counter reaches zero
Inheritance: IEnumerable
Mostrar archivo Open project: microsoft/FASTER

Public Methods

Method Description
Add ( ) : void

Increments the counter by 1

AsyncCountDown ( ) : System.Runtime.CompilerServices
Remove ( ) : void

Decrements the counter by 1

WaitUntilEmptyAsync ( CancellationToken cancellationToken ) : ValueTask

Provides a way to execute a continuation when the counter reaches zero

Private Methods

Method Description
GetOrCreateTaskCompletionSource ( TaskCompletionSource &tcsOut ) : bool
TryCompleteAwaitingTask ( ) : void

Method Details

Add() public method

Increments the counter by 1
public Add ( ) : void
return void

AsyncCountDown() public method

public AsyncCountDown ( ) : System.Runtime.CompilerServices
return System.Runtime.CompilerServices

Remove() public method

Decrements the counter by 1
public Remove ( ) : void
return void

WaitUntilEmptyAsync() public method

Provides a way to execute a continuation when the counter reaches zero
public WaitUntilEmptyAsync ( CancellationToken cancellationToken ) : ValueTask
cancellationToken CancellationToken
return ValueTask