org.apache.commons.io.function

## Interface IORunnable

- Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface IORunnable

  Like `Runnable` but throws `IOException`.

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default Runnable` | `asRunnable()` Creates a `Runnable` for this instance that throws `UncheckedIOException` instead of `IOException`.
    `static IORunnable` | `noop()` Returns the constant no-op runnable.
    `void` | `run()` Like `Runnable.run()` but throws `IOException`.

- - ### Method Detail

    - #### asRunnable

          default Runnable asRunnable()

      Creates a `Runnable` for this instance that throws `UncheckedIOException` instead of `IOException`.
      Returns:
        an UncheckedIOException Predicate.

    - #### noop

          static IORunnable noop()

      Returns the constant no-op runnable.
      Returns:
        a constant no-op runnable.

    - #### run

          void run()
            throws IOException

      Like `Runnable.run()` but throws `IOException`.
      Throws:
        `IOException` - if an I/O error occurs.