Google 致力于为黑人社区推动种族平等。查看具体举措

SynchronousExecutor

public class SynchronousExecutor
extends Object implements Executor

java.lang.Object
   ↳ androidx.work.testing.SynchronousExecutor


Is an implementation of a Executor which executes Runnable's synchronously.

Summary

Public constructors

SynchronousExecutor()

Public methods

void execute(Runnable command)

Inherited methods

Public constructors

SynchronousExecutor

public SynchronousExecutor ()

Public methods

execute

public void execute (Runnable command)

Parameters
command Runnable