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

startup() method from fcf.Actions class

fcf.Actions startup()

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Changes the fcf.Actions object from the pending state to the running state. To use a method, the deferred flag must be set on the object.

Result
fcf.Actions
- Self pointer

Example: Function application

let actions = new fcf.Actions({deferred: true}); actions.then(()=>{ console.log("Step 1"); }) console.log("Initialize"); actions.then(()=>{ console.log("Step 2"); }) actions.startup();

Output:

Initialize Step 1 Step 2