Basics
Guides
API Reference
Basics
Guides
API Reference
[21:14] static extends: object
Helper for FXGL's Async singleton
(com.almasb.fxgl.core.concurrent.Async), the default Executor
used by FXGL for background work. Distinct from the existing
IOTaskExecutorService wrapper: Async runs raw Callables /
Runnables on a cached thread pool (or the JavaFX thread for
the FX variants) without the IOTask onSuccess/onFailure
scaffolding.
Aussom users typically reach Async through fxgl.getExecutor()
(which returns this object); this helper provides the
convenience static-style API.
startAsync (callback Cb)
Submits a Runnable to FXGL's background executor and returns an AsyncTask whose await() returns null when the Runnable finishes.
Cb is the action to run.An AsyncTask wrapper.startAsyncCallable (callback Cb)
Submits a Callable to FXGL's background executor and returns an AsyncTask whose await() yields the result.
Cb is the callable returning the result.An AsyncTask wrapper.startAsyncFX (callback Cb)
Submits a Runnable that runs on the JavaFX Application thread.
Cb is the action to run on the FX thread.An AsyncTask wrapper.startAsyncFXCallable (callback Cb)
Submits a Callable that runs on the JavaFX Application thread.
Cb is the callable to run on the FX thread.An AsyncTask wrapper.schedule (callback Cb, double DelaySeconds)
Schedules a Runnable to run after DelaySeconds. The returned ScheduledFuture supports cancel() through its AJO.
Cb is the action to run.DelaySeconds is the delay in seconds.An AussomJavaObject around a ScheduledFuture.shutdownNow ()
Shuts down every background thread used by the default Async executor. Typically called during application teardown.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.