[amqp-connection-manager] Fix waitForConnect (#42677)

This commit is contained in:
Igor Morozov
2020-02-27 11:12:06 -08:00
committed by GitHub
parent 0e5b0ca685
commit eb7c8b9178
+5 -5
View File
@@ -114,11 +114,6 @@ export interface AmqpConnectionManager extends EventEmitter {
* Close this AmqpConnectionManager and free all associated resources.
*/
close(): Promise<void>;
/**
* Returns a Promise which resolves when this channel next connects.
*/
waitForConnect(): Promise<void>;
}
export interface ChannelWrapper extends EventEmitter {
@@ -211,4 +206,9 @@ export interface ChannelWrapper extends EventEmitter {
* Close a channel, clean up resources associated with it.
*/
close(): Promise<void>;
/**
* Returns a Promise which resolves when this channel next connects.
*/
waitForConnect(): Promise<void>;
}