Skip to content

Commit 7b50474

Browse files
dev-scripttargos
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent b88314f commit 7b50474

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/http2.md

+1
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)