public class Task extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
asyncImmediateFunctions |
static int |
calledFunctions |
static int |
delayedFunctions |
static int |
desiredFps |
static int |
immediateFunctions |
static Long |
lastFrame |
static int |
runningAsyncFunctions |
static org.stjs.javascript.Array<org.stjs.javascript.functions.CallbackOrFunction> |
tasks |
static Object |
updateFrameHandle |
| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
static void |
asyncContinue() |
static org.stjs.javascript.TimeoutHandler |
asyncImmediate(org.stjs.javascript.functions.Callback1 c)
Invoke a method at some point in the future, allowing draw methods to occur periodically.
|
static org.stjs.javascript.TimeoutHandler |
immediate(org.stjs.javascript.functions.Callback0 c)
Invoke a method now or later based on whether some time has passed since we last drew the screen.
|
static void |
updateFrame()
Updates the framerate timer/counter.
|
public static int desiredFps
public static Long lastFrame
public static org.stjs.javascript.Array<org.stjs.javascript.functions.CallbackOrFunction> tasks
public static int delayedFunctions
public static int immediateFunctions
public static int calledFunctions
public static int asyncImmediateFunctions
public static int runningAsyncFunctions
public static Object updateFrameHandle
public static void updateFrame()
public static org.stjs.javascript.TimeoutHandler immediate(org.stjs.javascript.functions.Callback0 c)
{function()} - c Method to invokepublic static org.stjs.javascript.TimeoutHandler asyncImmediate(org.stjs.javascript.functions.Callback1 c)
{function()} - c Method to invokepublic static void asyncContinue()
Copyright © 2021 Eduworks Corporation. All rights reserved.