![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | ISemaphoreTryAcquire Method |
Acquires a permit, if one is available and returns immediately,
with the value true, reducing the number of available permits by one.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxFunction TryAcquire As Boolean
abstract TryAcquire : unit -> bool
Return Value
Type:
Booleantrue
if a permit was acquired and
false
otherwise
Remarks
Acquires a permit, if one is available and returns immediately,
with the value
true, reducing the number of available permits by one.
If no permit is available then this method will return
immediately with the value
false.
See Also