Class AsyncAccumulator<A>

    • Method Detail

      • create

        public static <A> AsyncAccumulator<A> create​(@Nullable
                                                     A accumulator)
      • addPromise

        public <T> void addPromise​(@NotNull
                                   @NotNull Promise<T> promise,
                                   @NotNull
                                   @NotNull BiConsumer<A,​T> consumer)
      • get

        @NotNull
        public @NotNull Promise<A> get()
      • getAccumulator

        public A getAccumulator()
      • getActivePromises

        public int getActivePromises()
      • complete

        public void complete()
      • complete

        public void complete​(A result)
      • closeEx

        public void closeEx​(@NotNull
                            @NotNull Throwable e)
        Description copied from interface: AsyncCloseable
        Closes process exceptionally in case an exception is thrown while executing the given process.
        Specified by:
        closeEx in interface AsyncCloseable
        Parameters:
        e - exception that is used to close process with