mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
more formatting
This commit is contained in:
1 parent
046447b0fb
commit
f552c1212c
157 files changed
+635
-1579
No files matched your search
@@ -25,18 +25,13 @@ export default class ClientUtils {
|
||||
};
|
||||
}
|
||||
|
||||
public emitNetPromise<T = any>(
|
||||
eventName: string,
|
||||
...args: any[]
|
||||
): Promise<T> {
|
||||
public emitNetPromise<T = any>(eventName: string, ...args: any[]): Promise<T> {
|
||||
return new Promise((resolve, reject) => {
|
||||
let hasTimedOut = false;
|
||||
|
||||
setTimeout(() => {
|
||||
hasTimedOut = true;
|
||||
reject(
|
||||
`${eventName} has timed out after ${this._settings.promiseTimeout} ms`
|
||||
);
|
||||
reject(`${eventName} has timed out after ${this._settings.promiseTimeout} ms`);
|
||||
}, this._settings.promiseTimeout);
|
||||
|
||||
// Have to use this as the regular uuid refused to work here for some
|
||||
|
||||
Reference in new issue
Block a user