ISemaphoreTryAcquire Method Hazelcast .Net Client Class Library
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.6.1.0
Syntax

bool TryAcquire()

Return Value

Type: Boolean
true 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

Reference