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

complete() method from fcf.Actions.Act class

complete(mixed a_value)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Ends the execution of an asynchronous action and sets the execution result


mixed a_value
- Delayed action value to be set

Example: Function application

fcf.actions() .then((a_lastResult, a_act)=>{ a_act.complete("Result value"); }) .then((a_lastResult)=>{ console.log(a_lastResult); });


Result value