chore: deprecate remote (#25293)
This commit is contained in:
parent
98683190b4
commit
dd781c4f63
4 changed files with 24 additions and 2 deletions
|
@ -42,7 +42,7 @@ export const emittedNTimes = async (emitter: NodeJS.EventEmitter, eventName: str
|
|||
};
|
||||
|
||||
export const emittedUntil = async (emitter: NodeJS.EventEmitter, eventName: string, untilFn: Function) => {
|
||||
const p = new Promise<any[][]>(resolve => {
|
||||
const p = new Promise<any[]>(resolve => {
|
||||
const handler = (...args: any[]) => {
|
||||
if (untilFn(...args)) {
|
||||
emitter.removeListener(eventName, handler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue