Skip to content

Commit d08f528

Browse files
committed
Added async keyword to ApiGatewayManagementProvider class, as appropriate
1 parent 7e79556 commit d08f528

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.releases/4.35.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
**Technical Enhancements**
22

3+
* Added `async` keyword to `ApiGatewayManagementProvider` class, as appropriate.
34
* Added `async` keyword to `CloudWatchLogsProvider` class, as appropriate.
45
* Added `async` keyword to `S3Provider` class, as appropriate.
56
* Added `async` keyword to `SecretsManagerProvider` class, as appropriate.

aws/ApiGatewayManagementProvider.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ module.exports = (() => {
4444
* functions.
4545
*
4646
* @public
47+
* @async
4748
* @returns {Promise<Boolean>}
4849
*/
49-
start() {
50+
async start() {
5051
if (this.getIsDisposed()) {
5152
return Promise.reject('Unable to start, the API Gateway provider has been disposed');
5253
}
@@ -78,11 +79,13 @@ module.exports = (() => {
7879
/**
7980
* Sends data to provided connection.
8081
*
82+
* @public
83+
* @async
8184
* @param {String} connectionId
8285
* @param {Buffer|String} data
8386
* @returns {Promise}
8487
*/
85-
postToConnection(connectionId, data) {
88+
async postToConnection(connectionId, data) {
8689
return Promise.resolve()
8790
.then(() => {
8891
assert.argumentIsRequired(connectionId, 'connectionId', String);

0 commit comments

Comments
 (0)