Constructs a new AsyncManager and loads the handler map.
The ISGNTask node associated with this manager.
PrivatecommandMap of command handler classes by scope.
PrivatecommandInstantiated command handlers by scope.
PrivatecommandRegistry of active async commands by ID.
PrivateeventDispatcher for sending async events to the appropriate task node.
PrivateeventQueue for managing async events.
PrivatefpsTimer for measuring frame deltas.
PrivatefunctionMap of function names by scope.
PrivateloopLoop frequency in milliseconds for the main loop.
PrivateportMessage port for receiving commands (Roku platform).
OptionalrunInterval handle for the web run loop.
PrivatesystemInjected system service for ticking system-level operations.
The task node associated with this manager.
PrivatetimerInjected timer service for ticking timer-based operations.
Cancels a command by its ID, invoking its cancellation token and removing it from the registry.
The ID of the command to cancel.
Completes a command by dispatching its event and removing it from the registry.
The async event to complete the command with.
Sets up observers and starts the run loop for the Web platform.
Initializes the async environment, registering fetch, event dispatcher, and event queue.
PrivateloadLoads the handler map and function map for command dispatching.
Handles command changes from the task node.
The ROSG node event containing the async command.
PrivateprocessProcesses an incoming async command, instantiating and invoking the appropriate handler.
The async command to process.
Registers a command in the command registry and assigns a cancellation token.
The async command to register.
Starts the main loop for processing async commands and events. Adapts to Roku or Web platform.
Main loop for ticking system and timer services, and processing commands (Roku).
Main loop for ticking system and timer services (Web).
AsyncManager is responsible for managing the lifecycle and execution of asynchronous commands and events.
Remarks