Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make AudioStream use AsyncIterableIterator #272

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nbsp
Copy link
Member

@nbsp nbsp commented Sep 19, 2024

instead of having a typed EventEmitter

Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: 8667110

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@livekit/rtc-node Minor
@livekit/rtc-node-darwin-arm64 Minor
@livekit/rtc-node-darwin-x64 Minor
@livekit/rtc-node-linux-arm64-gnu Minor
@livekit/rtc-node-linux-x64-gnu Minor
@livekit/rtc-node-win32-x64-msvc Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nbsp nbsp force-pushed the nbsp/audiostream/iterator branch 2 times, most recently from 513dbff to aadbf24 Compare September 19, 2024 19:05
Base automatically changed from nbsp/bump/ffi-v0.10.2 to main September 20, 2024 06:37
An error occurred while trying to automatically change base from nbsp/bump/ffi-v0.10.2 to main September 20, 2024 06:37
return { done: true, value: undefined };
}
}
return new Promise((resolve) => (this.queueResolve = resolve));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm. I think this.queueResolve might get overridden before being called?
so the async iterator could get stuck

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the Mutex helper that Théo has mentioned already might make sense here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants