Interface ITaskExecutor<Msg>

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default <Source> java.util.concurrent.CompletableFuture<Source> ask​(java.util.function.Function<? super ITaskExecutor<Source>,​? extends Msg> p_213141_1_)  
      default <Source> java.util.concurrent.CompletableFuture<Source> askEither​(java.util.function.Function<? super ITaskExecutor<com.mojang.datafixers.util.Either<Source,​java.lang.Exception>>,​? extends Msg> p_233528_1_)  
      default void close()  
      java.lang.String name()  
      static <Msg> ITaskExecutor<Msg> of​(java.lang.String p_213140_0_, java.util.function.Consumer<Msg> p_213140_1_)  
      void tell​(Msg p_212871_1_)  
    • Method Detail

      • name

        java.lang.String name()
      • tell

        void tell​(Msg p_212871_1_)
      • close

        default void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • ask

        default <Source> java.util.concurrent.CompletableFuture<Source> ask​(java.util.function.Function<? super ITaskExecutor<Source>,​? extends Msg> p_213141_1_)
      • askEither

        default <Source> java.util.concurrent.CompletableFuture<Source> askEither​(java.util.function.Function<? super ITaskExecutor<com.mojang.datafixers.util.Either<Source,​java.lang.Exception>>,​? extends Msg> p_233528_1_)
      • of

        static <Msg> ITaskExecutor<Msg> of​(java.lang.String p_213140_0_,
                                           java.util.function.Consumer<Msg> p_213140_1_)