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

feat: create, dispose & reuse event stream #1609

Merged
merged 3 commits into from
Aug 17, 2023

Conversation

Gustl22
Copy link
Collaborator

@Gustl22 Gustl22 commented Aug 17, 2023

Description

Currently if an event stream for a playerId is requested, a new stream was created, conflicting with the existing one. Now the createEventStream, disposeEventStream and getEventStream methods allow more control of handling the stream and also reusing the existing stream on getEventStream.

Info: this wasn't a problem so far, as one AudioPlayer only held one instance of an event stream. But this is problematic on requesting the stream multiple times on different levels in the tests.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, refactor:,
    docs:, chore:, test:, ci: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation and added dartdoc comments with ///, where necessary.
  • I have updated/added relevant examples in example.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

@Gustl22 Gustl22 requested a review from spydon August 17, 2023 14:34
@Gustl22 Gustl22 merged commit efbabf5 into main Aug 17, 2023
@Gustl22 Gustl22 deleted the gustl22/create-dispose-event-stream branch August 17, 2023 15:05
Gustl22 added a commit that referenced this pull request Sep 26, 2023
# Description

Currently if an event stream for a `playerId` is requested, a new stream
was created, conflicting with the existing one. Now the
`createEventStream`, `disposeEventStream` and `getEventStream` methods
allow more control of handling the stream and also reusing the existing
stream on `getEventStream`.

(cherry picked from commit efbabf5)
Gustl22 added a commit that referenced this pull request Nov 14, 2023
# Description

Currently if an event stream for a `playerId` is requested, a new stream
was created, conflicting with the existing one. Now the
`createEventStream`, `disposeEventStream` and `getEventStream` methods
allow more control of handling the stream and also reusing the existing
stream on `getEventStream`.
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