CountdownEvent.Signal Method

Definition

Registers a signal with the CountdownEvent, decrementing the value of CurrentCount.

Overloads

Signal(Int32)

Registers multiple signals with the CountdownEvent, decrementing the value of CurrentCount by the specified amount.

Signal()

Registers a signal with the CountdownEvent, decrementing the value of CurrentCount.

Signal(Int32)

Source:
CountdownEvent.cs
Source:
CountdownEvent.cs
Source:
CountdownEvent.cs

Registers multiple signals with the CountdownEvent, decrementing the value of CurrentCount by the specified amount.

C#
public bool Signal(int signalCount);

Parameters

signalCount
Int32

The number of signals to register.

Returns

true if the signals caused the count to reach zero and the event was set; otherwise, false.

Exceptions

The current instance has already been disposed.

signalCount is less than 1.

The current instance is already set. -or- Or signalCount is greater than CurrentCount.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Signal()

Source:
CountdownEvent.cs
Source:
CountdownEvent.cs
Source:
CountdownEvent.cs

Registers a signal with the CountdownEvent, decrementing the value of CurrentCount.

C#
public bool Signal();

Returns

true if the signal caused the count to reach zero and the event was set; otherwise, false.

Exceptions

The current instance has already been disposed.

The current instance is already set.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0