You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed .promiseAll(), .promiseAny(), .promiseAllSettled() to return the Promise object which would be resolved on each array element promise member or element as a Promise.
Signatures
.promiseAll() - array element promise member or element as a Promise.
.promiseAll( propName ) - element property with given name
.promiseAll( el=>Promise ) - callback on each element which returns a promise
If elements of $var CssChain have a promise API, following is identical:
awaitPromise.all($var);await$var.promiseAll();await$var.promiseAll(el=>el.promise);// when element has a promise property
The text was updated successfully, but these errors were encountered:
CssChain elements could have members/methods to return own status as a
Promise
object.There is series of patterns of multiple promise use reflected in promise helper API:
Proposed
.promiseAll()
,.promiseAny()
,.promiseAllSettled()
to return thePromise
object which would be resolved on each array elementpromise
member or element as a Promise.Signatures
.promiseAll()
- array elementpromise
member or element as a Promise..promiseAll( propName )
- element property with given name.promiseAll( el=>Promise )
- callback on each element which returns a promiseIf elements of
$var
CssChain have a promise API, following is identical:The text was updated successfully, but these errors were encountered: