Future.isCompleted

bool isCompleted() const @trusted nothrow @nogc

Check whether the future has been completed (resolved or rejected).

Returns

true if the future is no longer pending.