Worker::getStackedGets the remaining stack size Description
public int Worker::getStacked()
Returns the number of tasks left on the stack ParametersThis function has no parameters. Return ValuesReturns the number of tasks currently waiting to be executed by the worker Examples
Example #1 A basic example of Worker::getStacked
The above example will output: There are 5 stacked tasks |