public final class HjAwaitExprBody extends Object
HjExpression.HjAwaitExpression
)
with the associated runnable body of the async.Modifier and Type | Field and Description |
---|---|
protected int |
dependentsCount
Maintains the count of unique futures used in the await expression.
|
protected AtomicInteger |
resolvedCounter
Maintains the count of resolved futures which are used in the await expression.
|
protected HjLambda<Boolean,?> |
runnableBody
The runnable body of the await statement
|
Constructor and Description |
---|
HjAwaitExprBody(HjExpression.HjAwaitExpression expression,
HjLambda<Boolean,?> runnableBody)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onFutureResolved(HjFuture<?> aFuture)
Callback for when a futureNb has been resolved (successfully or unsuccessfully).
|
protected final int dependentsCount
protected final AtomicInteger resolvedCounter
public HjAwaitExprBody(HjExpression.HjAwaitExpression expression, HjLambda<Boolean,?> runnableBody)
public void onFutureResolved(HjFuture<?> aFuture)
aFuture
- The futureNb instance which has been resolved.Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.