diff options
author | dev-313 <shekhawat.dev313@gmail.com> | 2019-10-29 19:41:49 +0530 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2019-10-31 10:22:39 +0530 |
commit | 99247e7662c6e4169c874a230760300eaa382207 (patch) | |
tree | c92258d0ce8f2b5f28d99b67656b08ba39f54c4b | |
parent | efe31e791d0f71cf7d7964f89f249aafca025cde (diff) | |
download | android-node-v8-99247e7662c6e4169c874a230760300eaa382207.tar.gz android-node-v8-99247e7662c6e4169c874a230760300eaa382207.tar.bz2 android-node-v8-99247e7662c6e4169c874a230760300eaa382207.zip |
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: https://github.com/nodejs/help/issues/877
PR-URL: https://github.com/nodejs/node/pull/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>
-rw-r--r-- | doc/api/http2.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index 058958517d..07ca77e30f 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -311,6 +311,7 @@ added: v8.4.0 After the `http2session.setTimeout()` method is used to set the timeout period for this `Http2Session`, the `'timeout'` event is emitted if there is no activity on the `Http2Session` after the configured number of milliseconds. +Its listener does not expect any arguments. ```js session.setTimeout(2000); |