Skip to content

metrics: convert processLogs callback into async-await#3798

Merged
targos merged 1 commit intonodejs:mainfrom
trivikr:metrics-processlogs-async-await
Jul 2, 2024
Merged

metrics: convert processLogs callback into async-await#3798
targos merged 1 commit intonodejs:mainfrom
trivikr:metrics-processlogs-async-await

Conversation

@trivikr
Copy link
Copy Markdown
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
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