Click or drag to resize

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.11
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