Improve waitFor docs

This commit is contained in:
2026-08-07 02:11:55 +00:00
parent 8b47dd2d8b
commit ede4c54252
+2 -2
View File
@@ -168,9 +168,9 @@ export class EventEmitter<T extends EventMap> {
} }
/** /**
* Wait for an event to be emitted. * Wait for an event to be emitted that matches the provided predicate function's criteria.
* @param type - The event type. * @param type - The event type.
* @param predicate - The predicate function. * @param predicate - Predicate function to filter for whether the event payload matches the criteria.
* @param timeoutMs - The timeout in milliseconds. * @param timeoutMs - The timeout in milliseconds.
* @returns The event payload. * @returns The event payload.
*/ */