FCF 2.0 development in progress...
> > > > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

promise() method from fcf.Actions class

Promise promise()

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Returns the Promise object queued for execution

Result
Promise
- 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