diff options
Diffstat (limited to 'mojo/public/java/system/src/org/chromium/mojo/system/RunLoop.java')
-rw-r--r-- | mojo/public/java/system/src/org/chromium/mojo/system/RunLoop.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mojo/public/java/system/src/org/chromium/mojo/system/RunLoop.java b/mojo/public/java/system/src/org/chromium/mojo/system/RunLoop.java deleted file mode 100644 index 4038b29..0000000 --- a/mojo/public/java/system/src/org/chromium/mojo/system/RunLoop.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package org.chromium.mojo.system; - -import java.io.Closeable; - -/** - * Definition of a run loop. - */ -public interface RunLoop extends Closeable { - /** - * Start the run loop. It will continue until quit() is called. - */ - public void run(); - - /** - * Start the run loop and stop it as soon as no task is present in the work queue. - */ - public void runUntilIdle(); - - /* - * Quit the currently running run loop. - */ - public void quit(); - - /** - * Add a runnable to the queue of tasks. - * @param runnable Callback to be executed by the run loop. - * @param delay Delay, in MojoTimeTicks (microseconds) before the callback should - * be executed. - */ - public void postDelayedTask(Runnable runnable, long delay); - - /** - * Destroy the run loop and deregister it from Core. - */ - @Override - public abstract void close(); -} |