Builder
A builder for GlideExecutors.
Functions
Link copied to clipboard
Builds a new GlideExecutor with any previously specified options.
Link copied to clipboard
Sets the prefix to use for each thread name created by any GlideExecutors built by this
Builder
.Link copied to clipboard
Sets the maximum number of threads to use.
Link copied to clipboard
open fun setThreadTimeoutMillis(threadTimeoutMillis: Long): GlideExecutor.Builder
Content copied to clipboard
Allows both core and non-core threads in the executor to be terminated if no tasks arrive for at least the given timeout milliseconds.
Link copied to clipboard
open fun setUncaughtThrowableStrategy(strategy: GlideExecutor.UncaughtThrowableStrategy): GlideExecutor.Builder
Content copied to clipboard
Sets the UncaughtThrowableStrategy to use for unexpected exceptions thrown by tasks on GlideExecutors built by this
Builder
.Properties
Link copied to clipboard
Prevents core and non-core threads from timing out ever if provided to setThreadTimeoutMillis.