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

wait() method from fcf.Actions class

fcf.Actions wait(number a_milliseconds)

Class: fcf.Actions

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 a_milliseconds parameter.

Arguments

number a_milliseconds
- delay in milliseconds
Result
fcf.Actions
- 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