Methods
handleEvent
- handleEvent(event: any): void
-
Parameters
Returns void
on
- on(event: string | number | symbol, callback: (...args: any[]) => any): { close: any }
-
Parameters
-
event: string | number | symbol
-
callback: (...args: any[]) => any
Returns { close: any }
-
close: function
-
Returns void
once
- once(event: string | number | symbol): Promise<any>
- once(event: string | number | symbol, cond: (...args: any[]) => any): Promise<any>
- once(event: string | number | symbol, cond: (...args: any[]) => any, callback: (...args: any[]) => any): Promise<any>
- once(event: string | number | symbol, cond: (...args: any[]) => any, callback: WaitForOpts): Promise<any>
-
Parameters
-
event: string | number | symbol
Returns Promise<any>
-
Parameters
-
event: string | number | symbol
-
cond: (...args: any[]) => any
Returns Promise<any>
-
Parameters
-
event: string | number | symbol
-
cond: (...args: any[]) => any
-
callback: (...args: any[]) => any
Returns Promise<any>
-
Parameters
-
event: string | number | symbol
-
cond: (...args: any[]) => any
-
callback: WaitForOpts
Returns Promise<any>
waitFor
- waitFor(event: string | number | symbol): Promise<any>
- waitFor(event: string | number | symbol, cond: (...args: any[]) => any): Promise<any>
- waitFor(event: string | number | symbol, cond: (...args: any[]) => any, callback: (...args: any[]) => any): Promise<any>
- waitFor(event: string | number | symbol, cond: (...args: any[]) => any, callback: WaitForOpts): Promise<any>
-
Parameters
-
event: string | number | symbol
Returns Promise<any>
-
Parameters
-
event: string | number | symbol
-
cond: (...args: any[]) => any
Returns Promise<any>
-
Parameters
-
event: string | number | symbol
-
cond: (...args: any[]) => any
-
callback: (...args: any[]) => any
Returns Promise<any>
-
Parameters
-
event: string | number | symbol
-
cond: (...args: any[]) => any
-
callback: WaitForOpts
Returns Promise<any>
The wrapper around events provided by Velt.