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

[Q] Stopping from Loop #128

Open
dwisiswant0 opened this issue Oct 31, 2023 · 6 comments
Open

[Q] Stopping from Loop #128

dwisiswant0 opened this issue Oct 31, 2023 · 6 comments
Labels
enhancement New feature or request future Planned for a future version of Beep

Comments

@dwisiswant0
Copy link

How can I stop playing from infinite Loop?

@MarkKremer
Copy link
Contributor

Good question, one way to do it is to attach a Ctrl streamer to pause it. However, this will still consume some resources.

I don't think a better way is possible currently, except for copying the Loop code so you can access the remains field. I'm marking this as a good improvement for the future. It's definitely a must-have in my opinion but it should be considered together with some other enhancements so they add to a cohesive whole.

@MarkKremer MarkKremer added enhancement New feature or request future Planned for a future version of Beep labels Oct 31, 2023
@MarkKremer
Copy link
Contributor

Could you provide some context about what you're trying to achieve? This could help designing what the new features will look like.

@MarkKremer
Copy link
Contributor

MarkKremer commented Oct 31, 2023

Or maybe it's as simple as adding StopNow() and/or StopAtEnd() methods. I would definitely like some context! :)

@dwisiswant0
Copy link
Author

[...] one way to do it is to attach a Ctrl streamer to pause it

Thanks for pointing that! I just reading this. It works properly now. :)

@MarkKremer
Copy link
Contributor

Re-opening this. I think it could add value still :)

For my own reference, I think you described the context in your other issue: #129

@MarkKremer MarkKremer reopened this Nov 1, 2023
@MarkKremer
Copy link
Contributor

An alternative to StopNow and StopAtEnd could be to have a Stopper streamer. This is more how Beep does things but it could be difficult to implement something like StopAtEnd using this streamer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request future Planned for a future version of Beep
Projects
None yet
Development

No branches or pull requests

2 participants