SerialExecutor

open class SerialExecutor : Executor
kotlin.Any
   ↳ androidx.work.impl.utils.SerialExecutor

A Executor which delegates to another Executor but ensures that tasks are executed serially, like a single threaded executor.

Summary

Public constructors
SerialExecutor(@NonNull executor: Executor)

Public methods
open Unit
execute(@NonNull command: Runnable)

open Executor

open Boolean

Public constructors

SerialExecutor

SerialExecutor(@NonNull executor: Executor)

Public methods

execute

open fun execute(@NonNull command: Runnable): Unit

getDelegatedExecutor

@NonNull open fun getDelegatedExecutor(): Executor

hasPendingTasks

open fun hasPendingTasks(): Boolean
Return
Boolean true if there are tasks to execute in the queue.