// Resolves at this run's layoutstop (immediately when never run); rejects with CancelledError when the run was cancelled — by cancel() or by cy.destroy()
layout.promise(): Promise<void>Resolves at this run's layoutstop (immediately when never run); rejects with CancelledError when the run was cancelled — by cancel() or by cy.destroy().
Returns
Promise<void>the run's promise
Example
layout.run();await layout.promise();console.log(cy.getElementById('b').position('x')); // 40