HttpFuture.wait

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.

Parameters

timeoutMaximum time to wait; must be non-negative.

Returns

true if the future completed (within the timeout),

false on timeout — the future stays pending and a later get() still blocks until completion.