Add when signature for Promise<void>