| ISemaphoreAcquire Method |
Acquires a permit, if one is available and returns immediately,
reducing the number of available permits by one.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.3
Syntax abstract Acquire : unit -> unit
Exceptions Remarks
Acquires a permit, if one is available and returns immediately,
reducing the number of available permits by one.
If no permit is available then the current thread becomes
disabled for thread scheduling purposes and lies dormant until
one of two things happens:
-
Some other thread invokes one of the
Release()
methods for this
semaphore and the current thread is next to be assigned a permit;
-
This ISemaphore instance is destroyed; or
See Also