Add AsyncIterable to EventStream

This commit is contained in:
MindfulMinun committed 2022-08-01 02:44:05 -05:00
1 parent 99329a9010
commit bb4b783537
1 file changed
+1 -1
+1 -1
View File
@@ -158,7 +158,7 @@ export function swap<T>(arr: T[], i: number, j: number): void {
* ```
* @since 2021-08-07
*/
export class EventStream<T> {
export class EventStream<T> implements AsyncIterable<T> {
#done: boolean
#events: T[]
#resolve: () => void