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

Optimize DataLoader::await method #13

Merged
merged 1 commit into from
Feb 13, 2017

Conversation

mcg-web
Copy link
Member

@mcg-web mcg-web commented Feb 13, 2017

DataLoader::await first tries to get the fulfilled value
or the rejected reason directly from the promise
otherwise calls promise adapter await
to complete promise.
Now DataLoader::await will not throw "no active
dataLoader instance" exception when Promise entry is null.

`DataLoader::await` first tries to get the fulfilled value
or the rejected reason directly from the promise
otherwise calls promise adapter `await`
to complete promise.
Now `DataLoader::await` will not throw "no active
dataLoader instance" exception when Promise entry is null.
@mcg-web mcg-web force-pushed the optimize-await-method branch from 1aea60b to 56b0f04 Compare February 13, 2017 11:07
@mcg-web mcg-web merged commit 8ad523b into overblog:master Feb 13, 2017
@mcg-web mcg-web deleted the optimize-await-method branch February 13, 2017 12:53
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