Initial commit: Client Doc docs Server Tools
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export function getCurrTime() {
|
||||
return Math.floor(Date.now() / 1000);
|
||||
}
|
||||
export function promisify(func) {
|
||||
return (args = {}) => new Promise((resolve, reject) => {
|
||||
func(Object.assign(args, {
|
||||
success: resolve,
|
||||
fail: reject,
|
||||
}));
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user