public class EcAsyncHelper<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
Integer |
counter
Counter that counts down when each callback is called.
|
static String |
scriptPath |
| Constructor and Description |
|---|
EcAsyncHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
each(org.stjs.javascript.Array<T> array,
org.stjs.javascript.functions.Callback2<T,org.stjs.javascript.functions.Callback0> each,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<T>> after)
"Each" method.
|
void |
eachSet(org.stjs.javascript.Array<T> array,
org.stjs.javascript.functions.Callback2<T,org.stjs.javascript.functions.Callback1> each,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<T>> after)
"Each" method.
|
org.stjs.javascript.functions.Callback1<String> |
failWithCallback(org.stjs.javascript.functions.Callback1<String> failure,
org.stjs.javascript.functions.Callback0 callback) |
void |
finish()
Stops any remaining objects from being iterated over, if they have not already.
|
boolean |
isStopped()
Is preventing 'after' from being called?
|
static org.stjs.javascript.functions.Callback1<String> |
setNull(org.stjs.javascript.functions.Callback1 set) |
void |
stop()
Stops any remaining objects from being iterated over, if they have not already.
|
public static String scriptPath
public Integer counter
public static org.stjs.javascript.functions.Callback1<String> setNull(org.stjs.javascript.functions.Callback1 set)
public void each(org.stjs.javascript.Array<T> array, org.stjs.javascript.functions.Callback2<T,org.stjs.javascript.functions.Callback0> each, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<T>> after)
{Array} - array Array to iterate over.{function(item,callback)} - each Method that gets invoked per item in the array.{function(array)} - after Method invoked when all callbacks are called.public void eachSet(org.stjs.javascript.Array<T> array, org.stjs.javascript.functions.Callback2<T,org.stjs.javascript.functions.Callback1> each, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<T>> after)
{Array} - array Array to iterate over.{function(item,callback)} - each Method that gets invoked per item in the array.{function(array)} - after Method invoked when all callbacks are called.public org.stjs.javascript.functions.Callback1<String> failWithCallback(org.stjs.javascript.functions.Callback1<String> failure, org.stjs.javascript.functions.Callback0 callback)
public void stop()
public void finish()
public boolean isStopped()
Copyright © 2021 Eduworks Corporation. All rights reserved.