mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-27 12:09:00 +00:00
Migrated to new JobManager.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package org.thoughtcrime.securesms.testutil;
|
||||
|
||||
import android.support.annotation.NonNull;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/**
|
||||
* Executor that runs runnables on the same thread {@link #execute(Runnable)} is invoked on.
|
||||
* Only intended to be used for tests.
|
||||
*/
|
||||
public class DirectExecutor implements Executor {
|
||||
@Override
|
||||
public void execute(@NonNull Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user