-
Notifications
You must be signed in to change notification settings - Fork 289
docs(samples): updated samples code to use async await #214
docs(samples): updated samples code to use async await #214
Conversation
samples/recognize.js
Outdated
}); | ||
} catch (err) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/recognize.js
Outdated
.join('\n'); | ||
console.log(`Transcription: ${transcription}`); | ||
} catch (err) { | ||
console.error('ERROR:', err); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/recognize.js
Outdated
.catch(err => { | ||
console.error('ERROR:', err); | ||
}); | ||
const [{results}] = await client.recognize(request); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
samples/betaFeatures.js
Outdated
}); | ||
const [response] = await client.recognize(request); | ||
const transcription = response.results | ||
.map( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #214 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 35 35
=====================================
Hits 35 35 Continue to review full report at Codecov.
|
a991bcc
to
1e46881
Compare
This is looking great! But... we have a few sample test failures. As soon as those are addressed, this is good to go. |
Fixes googleapis/google-cloud-node/issues/2869 (it's a good idea to open an issue first for discussion)