src/main/java/com/machinezoo/pushmode/PageExecutor.java
@Override
	public <T> CompletableFuture<T> submit(Runnable task, T result) {
		Objects.requireNonNull(task);
		return submit(Executors.callable(task, result));
	}
/**
	 * Schedules {@link Runnable} on this {@link PageExecutor} and returns specified result.
	 * The supplied {@link Runnable} will run in page's event loop.
	 * 
	 * @param task
	 *            {@link Runnable} to schedule.
	 * @param result
	 *            Value to return from {@link CompletableFuture} when the {@link Runnable} finishes running.
	 * @return {@link CompletableFuture} that will complete normally with the supplied result when the supplied {@link Runnable} finishes normally.
	 *         If the {@link Runnable} throws an exception, the {@link CompletableFuture} completes exceptionally with this exception.
	 * @x.threads This method is safe to call from any thread.
	 *            The supplied {@link Runnable} will run in the event loop, which means it doesn't need to synchronize access with other events in the same event loop.
	 * @see PageExecutor#submit(Runnable)
	 */
Schedules  Runnable on this  PageExecutor and returns specified result.
The supplied  Runnable will run in page's event loop.

@param task
Runnable to schedule.
@param result
Value to return from  CompletableFuture when the  Runnable finishes running.
@return  CompletableFuture that will complete normally with the supplied result when the supplied  Runnable finishes normally.
If the  Runnable throws an exception, the  CompletableFuture completes exceptionally with this exception.
@x.threads This method is safe to call from any thread.
The supplied  Runnable will run in the event loop, which means it doesn't need to synchronize access with other events in the same event loop.
Schedules Runnable on this PageExecutor and returns specified result . The supplied Runnable will run in page ' s event loop . @param task Runnable to schedule . @param result Value to return from CompletableFuture when the Runnable finishes running . @return CompletableFuture that will complete normally with the supplied result when the supplied Runnable finishes normally . If the Runnable throws an exception the CompletableFuture completes exceptionally with this exception . @x . threads This method is safe to call from any thread . The supplied Runnable will run in the event loop which means it doesn ' t need to synchronize access with other events in the same event loop .
@Override
	public <T> CompletableFuture<T> submit(Runnable task, T result) {
		Objects.requireNonNull(task);
		return submit(Executors.callable(task, result));
	}
@ Override public < T > CompletableFuture < T > submit ( Runnable task , T result ) { Objects . requireNonNull ( task ) ; return submit ( Executors . callable ( task , result ) ) ; }
Schedules {@link Runnable} on this {@link PageExecutor} and returns specified result.
Schedules { @link Runnable } on this { @link PageExecutor } and returns specified result .