Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: mojo/public/java/system/src/org/chromium/mojo/system/RunLoop.java

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.mojo.system;
6
7 import java.io.Closeable;
8
9 /**
10 * Definition of a run loop.
11 */
12 public interface RunLoop extends Closeable {
13 /**
14 * Start the run loop. It will continue until quit() is called.
15 */
16 public void run();
17
18 /**
19 * Start the run loop and stop it as soon as no task is present in the work queue.
20 */
21 public void runUntilIdle();
22
23 /*
24 * Quit the currently running run loop.
25 */
26 public void quit();
27
28 /**
29 * Add a runnable to the queue of tasks.
30 * @param runnable Callback to be executed by the run loop.
31 * @param delay Delay, in MojoTimeTicks (microseconds) before the callback s hould
32 * be executed.
33 */
34 public void postDelayedTask(Runnable runnable, long delay);
35
36 /**
37 * Destroy the run loop and deregister it from Core.
38 */
39 @Override
40 public abstract void close();
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698