Interface SimpleAsyncOutput<T>

    • Method Detail

      • async

        @NotNull Async<T> async​(@NotNull Duration timeout)
        If the timeout is expired before Async.resume() is called then the outcome is handled as failed.

        Do not call this method more than once. If an async method is called multiple times an exception is thrown.

        Parameters:
        timeout - Timeout that HiveMQ waits for the result of the async operation.
        Throws:
        UnsupportedOperationException - If async is called more than once.
        Since:
        4.0.0, CE 2019.1