delayedExecutor

Returns a new Executor that submits a task to the default executor after the given delay (or no delay if non-positive). Each delay commences upon invocation of the returned executor's {@code execute} method.

@param delay how long to delay, in units of {@code unit} @param unit a {@code TimeUnit} determining how to interpret the {@code delay} parameter @return the new delayed executor

  1. Executor delayedExecutor(Duration delay, Executor executor)
  2. Executor delayedExecutor(Duration delay)
    delayedExecutor
    (
    Duration delay
    )

Meta