mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
17 lines
437 B
Java
17 lines
437 B
Java
package net.sf.briar.api.android;
|
|
|
|
import java.util.concurrent.Callable;
|
|
import java.util.concurrent.ExecutionException;
|
|
|
|
/**
|
|
* Enables background threads to make Android API calls that must be made from
|
|
* a thread with a message queue.
|
|
*/
|
|
public interface AndroidExecutor {
|
|
|
|
/** Runs the given task on a thread with a message queue. */
|
|
<V> V run(Callable<V> c) throws InterruptedException, ExecutionException;
|
|
|
|
void shutdown();
|
|
}
|