![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | ISemaphoreDrainPermits Method |
Acquires and returns all permits that are immediately available.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxFunction DrainPermits As Integer
abstract DrainPermits : unit -> int
Return Value
Type:
Int32the number of permits drained
RemarksAcquires and returns all permits that are immediately available.
See Also