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

Fix issue 342 Blocking & non-blocking APIs uniformity #345

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

Conversation

qlli
Copy link
Contributor

@qlli qlli commented Oct 11, 2024

  1. Add non-blocking API such as StartPlay, StartAnimate
  2. Add blocking API: BroadcastAndWait

issue342.zip

@nighca nighca linked an issue Oct 11, 2024 that may be closed by this pull request
}

func (p *Game) Play__1(media Sound, wait bool) {
p.Play__2(media, &PlayOptions{Wait: wait})
func (p *Game) Play__1(soundName string, options *PlayOptions) {
Copy link
Collaborator

@nighca nighca Oct 12, 2024

Choose a reason for hiding this comment

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

We need to restore the original order of overloads after the overload issue fixed by gop. Related PR: goplus/gop#1991

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.

Blocking & non-blocking APIs uniformity
2 participants