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

add engine loading status flag #846

Merged
merged 1 commit into from Jun 19, 2019
Merged

add engine loading status flag #846

merged 1 commit into from Jun 19, 2019

Conversation

@catfact
Copy link
Collaborator

@catfact catfact commented Jun 19, 2019

this makes it so that engine.load() will skip issuing a load command if there's already one pending. (the function will also return false in this case, and true otherwise.)

also cleaned up some bad-looking logic in engine-loaded callback, which was conceivably responsible this apparent bug: incomplete command table at script init time, when engine takes long time to load, and no script-level callback is defined.
(https://llllllll.co/t/timber/21407/70)

…engine-lodaed callback
@tehn
tehn approved these changes Jun 19, 2019
@tehn tehn merged commit bdc4474 into master Jun 19, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@tehn tehn deleted the engine-loading-flag branch Jun 19, 2019
@neauoire
Copy link

@neauoire neauoire commented Jun 20, 2019

Would you prefer .is_ready, nstead of .is_loading?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants