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

game.restart() return a promise on native platforms #18185

Closed
wants to merge 1 commit into from

Conversation

minggo
Copy link
Contributor

@minggo minggo commented Jan 14, 2025

#17924

Make the return type of game.restart() the same on all platforms.

@minggo minggo requested a review from dumganhar January 14, 2025 02:41
Copy link

✅ Package size is not changed

Interface Check Report

This pull request does not change any public interfaces !


// Resolve the promise to indicate completion
resolve();
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't need to put the __restartVM to Promise, just return Promise.resolve(); is ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, i will test it.

@minggo minggo closed this Jan 15, 2025
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