mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[amqp-connection-manager] Fix waitForConnect (#42677)
This commit is contained in:
+5
-5
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user