Interface ITask<V>

    • Method Detail

      • onComplete

        @NotNull
        default @NotNull ITask<V> onComplete​(java.util.function.BiConsumer<ITask<V>,​V> consumer)
      • onComplete

        @NotNull
        default @NotNull ITask<V> onComplete​(java.util.function.Consumer<V> consumer)
      • onFailure

        @NotNull
        default @NotNull ITask<V> onFailure​(java.util.function.BiConsumer<ITask<V>,​java.lang.Throwable> consumer)
      • onFailure

        @NotNull
        default @NotNull ITask<V> onFailure​(java.util.function.Consumer<java.lang.Throwable> consumer)
      • onCancelled

        @NotNull
        default @NotNull ITask<V> onCancelled​(java.util.function.Consumer<ITask<V>> consumer)
      • clearListeners

        @NotNull
        @NotNull ITask<V> clearListeners()
      • getCallable

        java.util.concurrent.Callable<V> getCallable()
      • getDef

        V getDef​(V def)
      • get

        V get​(long time,
              java.util.concurrent.TimeUnit timeUnit,
              V def)