FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: improve doc Http2Session:Timeout · nodejs/node@1499a72 · GitHub

/ node Public

Commit 1499a72

Browse files
authored andcommitted
doc: improve doc Http2Session:Timeout
Add line in doc/http2.md for 'timeout' event which tell readers that 'timeout' event doesn't except any arguments. Refs: nodejs/help#877 PR-URL: #30161 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent e312448 commit 1499a72

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎doc/api/http2.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ added: v8.4.0
311311
After the `http2session.setTimeout()` method is used to set the timeout period
312312
for this `Http2Session`, the `'timeout'` event is emitted if there is no
313313
activity on the `Http2Session` after the configured number of milliseconds.
314+
Its listener does not expect any arguments.
314315

315316
```js
316317
session.setTimeout(2000);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL