Calls a callback once after a delay.
Delay in milliseconds
The function to call after the delay
The GLib source ID
timeout(500, () => console.log('delayed')); Copy
timeout(500, () => console.log('delayed'));
Calls a callback once after a delay.