public:
int Release(int releaseCount);
public int Release(int releaseCount);
member this.Release : int -> int
Public Function Release (releaseCount As Integer) As Integer
Parameters
The number of times to exit the semaphore.
ReturnsThe previous count of the SemaphoreSlim.
ExceptionsThe current instance has already been disposed.
releaseCount
is less than 1.
A call to the Release(Int32) method increments the CurrentCount property by releaseCount
. If the value of the CurrentCount property is zero before this method is called, the method also allows releaseCount
threads or tasks blocked by a call to the Wait or WaitAsync method to enter the semaphore.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4