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 promise-based preload mechanism #3905

Merged

Conversation

meiamsome
Copy link
Member

Part of #2698 - implement a new promise-based preload mechanism.

Related PR which contains some relevant discussion: #3507

This PR adds a promise-based preload mechanism, along with some tests to assert that the functionality works correctly. Note that due to the tests not being isolated from each other it is hard to test the functionality where these are applied to the p5.prototype object, as that is only run once per page. The tests for individual preloads should cover this gap.

@outofambit
Copy link
Contributor

hi @meiamsome, i'm going to look at this in the next day or two!

Copy link
Contributor

@outofambit outofambit left a comment

Choose a reason for hiding this comment

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

this looks good to me! thanks @meiamsome!! ✨

@outofambit outofambit merged commit 43a0c48 into processing:master Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants