From 087ad7f11e6a12914b8d611902ee8ded05515d17 Mon Sep 17 00:00:00 2001 From: dev-313 Date: Tue, 29 Oct 2019 19:41:49 +0530 Subject: [PATCH] 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. Fixes: https://github.com/nodejs/help/issues/877 --- doc/api/http2.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/http2.md b/doc/api/http2.md index 058958517d47ca..07ca77e30f5e30 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);