AsyncExecutorDispatcher
class AsyncExecutorDispatcher(val executor: AsyncExecutor, val threads: Int = -1) : AbstractKtxDispatcher, Closeable, Disposable
A CoroutineDispatcher that wraps around libGDX AsyncExecutor instance (available via executor property) to execute tasks asynchronously. threads property is purely informational and cannot be verified, since AsyncExecutor does not expose the amount of threads it uses internally; provide a valid threads amount during initiation or use the official factory methods to prevent from mismatches with the actual max threads amount.
Uses libGDX Timer API to support delay.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun invokeOnTimeout(timeMillis: Long, block: Runnable, context: CoroutineContext): DisposableHandle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit>)