AndroidXExecutors


object AndroidXExecutors


Utility methods for Executor instances.

Summary

Public functions

Executor

Returns an Executor that runs tasks sequentially on wrapped.

Public functions

serialExecutor

Added in 1.4.0-alpha01
fun serialExecutor(wrapped: Executor): Executor

Returns an Executor that runs tasks sequentially on wrapped.

Tasks run in submission order. A task must complete before the next one starts.

Parameters
wrapped: Executor

the executor that will run the tasks

Returns
Executor

a sequential executor