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

get rid of co #10633

Merged
merged 24 commits into from Sep 1, 2021
Merged

Conversation

AbdelrahmanHafez
Copy link
Collaborator

No description provided.

@AbdelrahmanHafez AbdelrahmanHafez changed the title refactor tests/examples to use async/await get rid of co Aug 29, 2021
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Great work! Any objection to me merging this? Would rather any additional work be in a sperate PR, because this PR is already making GitHub lag :)

Buffer.from('aGVsbG8gd29ybGQ=', 'base64'),
{ type: 'Buffer', data: [103, 104, 45, 54, 56, 54, 51] } // gh-6863
] } }).exec().then(tests => {
assert.equal(tests.length, 4);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note to self to fix nasty formatting here

Buffer.from('aGVsbG8gd29ybGQ=', 'base64'),
{ type: 'Buffer', data: [103, 104, 45, 54, 56, 54, 51] } // gh-6863
] } }).exec().then(tests => {
assert.equal(tests.length, 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

And here too

b: 'bar',
c: 'baz'
});
await db.$initialConnection;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note to self to make this asPromise()

@AbdelrahmanHafez
Copy link
Collaborator Author

@vkarpov15
Not at all, I usually only ask to review once I think it's ready to merge.

I'm planning to do more refactoring in a separate PR once this is merged.

@vkarpov15 vkarpov15 merged commit 0e79c5c into Automattic:master Sep 1, 2021
@vkarpov15 vkarpov15 added this to the 6.0.4 milestone Sep 1, 2021
@AbdelrahmanHafez AbdelrahmanHafez deleted the prefer-async-await branch September 2, 2021 11:36
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.

None yet

2 participants