欢迎参加我们将于 6 月 3 日举行的 #Android11:Beta 版发布会

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