
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(edu.rice.hj.experimental.api.HjExpression.HjAwaitExpression expression,
HjLambda<Boolean,?> runnableBody)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onFutureResolved(HjFuture<?> aFuture)
Callback for when a future has been resolved (successfully or unsuccessfully).
|
protected final int dependentsCount
protected final AtomicInteger resolvedCounter
public void onFutureResolved(HjFuture<?> aFuture)
aFuture - The future instance which has been resolved.Copyright © 2014 Rice University - Department of Computer Science. All rights reserved.