Future.isPending

bool isPending() const @trusted nothrow @nogc

Check whether the future is still pending.

Returns

true if the future has not yet been completed.