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

Voice Concurrency #423

Merged

Conversation

lost-illusi0n
Copy link
Contributor

This PR fixes the coroutine-related downfalls in the current voice implementation. There should no longer be any lingering coroutines after calling shutdown on a VoiceConnection. This PR also tries to adhere to a more defined coroutine structure, along with polishing some reconnection/disconnection logic.

Based off of #386

@lost-illusi0n lost-illusi0n mentioned this pull request Oct 15, 2021
9 tasks
@HopeBaron
Copy link
Member

This doesn't seem to be based of #386

*/
fun connect() = launch {
voiceGateway.start(voiceGatewayConfiguration)
suspend fun connect(context: CoroutineContext = EmptyCoroutineContext) {
Copy link
Member

Choose a reason for hiding this comment

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

would probably be better to make this a scope and default to this

@lost-illusi0n lost-illusi0n changed the base branch from 0.8.x to master October 18, 2021 12:50
@lost-illusi0n lost-illusi0n changed the base branch from master to 0.8.x October 18, 2021 12:50
@lost-illusi0n
Copy link
Contributor Author

ah right, it is based off of #386 but when it was merged, the history was all squashed into c1e1bf5

@lost-illusi0n lost-illusi0n force-pushed the features/0.8.x/voice-concurrency branch from b198bee to cc7a562 Compare October 18, 2021 13:14
@lost-illusi0n lost-illusi0n force-pushed the features/0.8.x/voice-concurrency branch from cc7a562 to 7136523 Compare October 18, 2021 13:28
@lost-illusi0n lost-illusi0n force-pushed the features/0.8.x/voice-concurrency branch from 9bb8cb4 to b49a45f Compare October 18, 2021 13:55
@lost-illusi0n
Copy link
Contributor Author

ill do the same thing with the other PRs that dependent on this one, once this is merged

@HopeBaron HopeBaron merged commit 85943df into kordlib:0.8.x Oct 18, 2021
@HopeBaron HopeBaron added the hacktoberfest-accepted Pull requests participating in hacktoberfest label Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Pull requests participating in hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants