Object with Promises/Functions returning promises.
Resolves with first resolved condition's key.
const result = waitForFirstCondition({
a: () => new Promise(resolve => setTimeout(() => resolve(), 1000),
b: new Promise(resolve => setTimeout(() => resolve(), 500)
});
Generated using TypeDoc
High level helper which runs enter/leave when selector is being matched.