// prepare resources await prepareResourcesFor(mode); if (currentInitId !== initId) return; // stale, abort