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

metrics: convert processLogs callback into async-await #3798

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Jul 2, 2024

Similar to #3794

Docs: https://googleapis.dev/nodejs/storage/5.20.5/File.html#download-examples

//-
// If the callback is omitted, we'll return a Promise.
//-
file.download().then(function(data) {
  const contents = data[0];
});

Docs: https://googleapis.dev/nodejs/storage/5.20.5/File.html#save-examples

//-
// If the callback is omitted, we'll return a Promise.
//-
file.save(contents).then(function() {});

@targos targos merged commit 12487a2 into nodejs:main Jul 2, 2024
1 check passed
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.

3 participants