true if the future completed (within the timeout),
false on timeout — the future stays pending and a later get() still blocks until completion.
void wait()Blocks until the future is completed.
Warning: This method blocks indefinitely; prefer the timed overload when a stuck request must not hang the caller.
bool wait(Duration timeout)Blocks until the future is completed or the timeout elapses.
timeout | Maximum time to wait; must be non-negative. |
true if the future completed (within the timeout),
false on timeout — the future stays pending and a later get() still blocks until completion.