Promise
WireBootstrap's Promise
helper allows code to be more readable when working with JavaScript promises.
A normal flow requires code logic to be included inside the function passed to the Promise
constructor.
Use wire.Promise
to create a promise object that can be used directly to resolve or reject the promise.
When
This is the callback version of promise all. Use wire.when
to perform multiple operations and then call a single function.
The first parameter to when
is the number of callbacks that are expected. The second parameter is the function to call when all of the operations have been completed.
Last updated