promise() method from fcf.Actions class
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Returns the
Result
- Returns a Promise waiting for pending actions to complete
Example: Function application
fcf.actions()
.then (()=>{
console.log("Step 1");
})
.promise ().then (() => {
console.log("Step 2");
})
Output:
Step 1
Step 2