wait() method from fcf.Actions class
Class:
Package: fcf-framework-core
File: fcf.js
Available from version: 1.0.16
The method adds a delay in the sequence of actions set in the
Arguments
- delay in milliseconds
Result
- returns a link to the current fcf.Actions object.
Example: Delay in the order of actions
let fcf = require("fcf-framework-core");
fcf.actions()
.then (()=>{
fcf.log .log ("APP", "Performing the first action")
})
.wait (1000)
.then (()=>{
fcf.log .log ("APP", "The end of the \"wait\" method")
})
Output:
2026-05-22 23:25:49.955 [PID:322735] [LOG] [MOD:APP]: Performing the first action
2026-05-22 23:25:50.963 [PID:322735] [LOG] [MOD:APP]: The end of the "wait" method
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.