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

Samples to use async/await #305

Merged
merged 10 commits into from
Nov 12, 2018
Merged

Conversation

muraliQlogic
Copy link
Contributor

@muraliQlogic muraliQlogic commented Oct 30, 2018

Works towards googleapis/google-cloud-node#2865 and googleapis/google-cloud-node#2869 (it's a good idea to open an issue first for discussion)

  • Tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 30, 2018
@codecov
Copy link

codecov bot commented Oct 30, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@aa9c442). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #305   +/-   ##
========================================
  Coverage          ?   96.4%           
========================================
  Files             ?      13           
  Lines             ?    1057           
  Branches          ?     143           
========================================
  Hits              ?    1019           
  Misses            ?      32           
  Partials          ?       6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa9c442...04e8463. Read the comment docs.

samples/subscriptions.js Outdated Show resolved Hide resolved
// setInterval() gets run every 10s.
const interval = setInterval(function() {
// Every 10s, we do a check on the processing states of the messages.
Object.keys(messages).forEach(async ackId => {

This comment was marked as spam.

samples/subscriptions.js Outdated Show resolved Hide resolved
// Pub/Sub messages are unordered, so here we manually order messages by
// their "counterId" attribute which was set when they were published.
const outstandingIds = Object.keys(outstandingMessages).map(counterId =>
parseInt(counterId, 10)

This comment was marked as spam.

samples/subscriptions.js Outdated Show resolved Hide resolved
@JustinBeckwith
Copy link
Contributor

👋 This has a lot of merge conflicts now :/ Apologies!

@JustinBeckwith JustinBeckwith merged commit e0b4518 into googleapis:master Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants