file: Executor.aus

class: Executor

[25:7] extends: FxObj

Wraps FXGL's Executor interface (com.almasb.fxgl.core.concurrent.Executor) obtained via fxgl.getExecutor(). Provides the canonical async surface: startAsync runs work on a background thread, startAsyncFX runs work on the JavaFX Application Thread, and schedule queues a Runnable for delayed execution. Each startAsync / startAsyncFX call returns an AsyncTask wrapper whose await() blocks until the work finishes (returning the Callable result or null for a Runnable). Distinct from the existing Async.aus static helper: that hits the singleton directly for one-off background work; this is the full Executor wrapper for cases where the caller already has the instance (typically via fxgl.getExecutor()).

Methods