empty() method from fcf.Actions class
Class:
Package: fcf-framework-core
File: fcf.js
Available from version: 1.0.16
Returns
Result
- Returns true if the action queue is empty and no actions are currently running; otherwise, false
Example:
let fcf = require("fcf-framework-core");
async function main() {
let actions = fcf.actions ();
await actions
.then (()=>{
fcf.log .log ("APP", "The value of the state empty: ", actions.empty())
});
fcf.log .log ("APP", "The state of the empty flag after completing all actions:", actions.empty())
}
main();
Output:
2026-05-22 23:40:11.645 [PID:337617] [LOG] [MOD:APP]: The value of the state empty: false
2026-05-22 23:40:11.653 [PID:337617] [LOG] [MOD:APP]: The state of the empty flag after completing all actions: true
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.