BackgroundExecutor


@UnstableApi
class BackgroundExecutor


A utility class to obtain an Executor for background tasks.

Summary

Public functions

synchronized java-static Executor!
get()

Returns an Executor for background tasks.

synchronized java-static Unit
set(executor: Executor!)

Sets the Executor to be returned from get.

Public functions

get

synchronized java-static fun get(): Executor!

Returns an Executor for background tasks.

Must only be used for quick, high-priority tasks to ensure other background tasks are not blocked.

set

synchronized java-static fun set(executor: Executor!): Unit

Sets the Executor to be returned from get.

Parameters
executor: Executor!

An Executor that runs tasks on background threads and should only be used for quick, high-priority tasks to ensure other background tasks are not blocked.