throwIfCancelled function
Throws WayfinderException.cancelled when cancel is cancelled, as an
operation, or a host's GitRunner, does between steps.
Implementation
void throwIfCancelled(WayfinderCancellation? cancel) {
if (cancel?.isCancelled ?? false) throw const WayfinderException.cancelled();
}