mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Use AndroidExecutor for background tasks that make API calls.
This commit is contained in:
@@ -10,11 +10,13 @@ import java.util.concurrent.Future;
|
||||
public interface AndroidExecutor {
|
||||
|
||||
/**
|
||||
* Runs the given task on the main UI thread and returns a Future for
|
||||
* getting the result.
|
||||
* Runs the given task on a background thread with a message queue and
|
||||
* returns a Future for getting the result.
|
||||
*/
|
||||
<V> Future<V> submit(Callable<V> c);
|
||||
|
||||
/** Runs the given task on the main UI thread. */
|
||||
/**
|
||||
* Runs the given task on a background thread with a message queue.
|
||||
*/
|
||||
void execute(Runnable r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user