Skip to content

undefjs/Time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Time

import * as Time from './Time';

const callback = () => {
  console.log('Callback executed!');
};

// Example 1: Using executeAt
const timestamp1 = Date.now() + 5000; // 5 seconds from now
Time.executeAt(timestamp1, callback);

// Example 2: Using executeAfter
Time.executeAfter(5000, callback);

// Example 3: Using waitUntil
const timestamp2 = Date.now() + 5000; // 5 seconds from now
await Time.waitUntil(timestamp2);

// Example 4: Using wait
await Time.wait(5000);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published