Search
Preparing search index...
The search index is not available
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
fm
icelink
ManagedCountdownLatch
Class ManagedCountdownLatch
A countdown latch that will signal when the counter reaches zero.
Hierarchy
ManagedCountdownLatch
Index
Constructors
constructor
Properties
__counter
__wait
Promise
Methods
decrement
get
Count
get
Type
String
wait
Async
Constructors
constructor
new
Managed
Countdown
Latch
(
initialCount
:
number
)
:
ManagedCountdownLatch
Creates a new instance of the Latch with an initial count.
Parameters
initialCount:
number
The count to start the latch at.
Returns
ManagedCountdownLatch
Properties
Private
__counter
__counter
:
AtomicInteger
internal
Private
__wait
Promise
__wait
Promise
:
Promise
<
Object
>
internal
Methods
decrement
decrement
(
)
:
void
Decrements the counter by one and signals if it reaches zero.
Returns
void
get
Count
get
Count
(
)
:
number
Gets the current count on the latch.
Returns
number
get
Type
String
get
Type
String
(
)
:
string
Returns
string
wait
Async
wait
Async
(
)
:
Future
<
Object
>
Returns a promise that resolves once the counter reaches zero.
Returns
Future
<
Object
>
Managed
Countdown
Latch
constructor
__counter
__wait
Promise
decrement
get
Count
get
Type
String
wait
Async