feat(cli/js/net): make rid on listener public (#5571)

This commit is contained in:
Peter Indiola 2020-06-09 00:24:51 +08:00 committed by GitHub
parent d907133944
commit 6236252c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -1545,6 +1545,9 @@ declare namespace Deno {
/** Return the address of the `Listener`. */
readonly addr: Addr;
/** Return the rid of the `Listener`. */
readonly rid: number;
[Symbol.asyncIterator](): AsyncIterableIterator<Conn>;
}

View file

@ -26,6 +26,8 @@ export interface Listener extends AsyncIterable<Conn> {
addr: Addr;
rid: number;
[Symbol.asyncIterator](): AsyncIterableIterator<Conn>;
}