Interface Waiting


  • public interface Waiting
    Interface to await for the completion of an asynchronous task.
    • Field Detail

      • NO_WAIT

        static final Waiting NO_WAIT
        Do not wait.
    • Method Detail

      • awaitAll

        static Waiting awaitAll​(Collection<Waiting> all)
        Returns a single Waiting that will await for all of the specified tasks to complete.
        Parameters:
        all - Tasks.
        Returns:
        single Waiting that will await for all of the specified tasks to complete.
      • awaitUninterruptedly

        default void awaitUninterruptedly()
        Uninterruptedly waits for this task to complete.