You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -961,7 +961,7 @@ fs.readFile( "file.json", function ( err, data ) {
961
961
});
962
962
```
963
963
964
-
Any asynchronous method expects one of the arguments to be a callback. The full callback argument list depends on the caller method, but the first argument is always an error object or null. When we go for the asynchronous method, an exception thrown during function execution cannot be detected in a try/catch statement. The event happens after the JavaScript engine leaves the try block.
964
+
Any asynchronous method expects one of the arguments to be a callback. The full callback argument list depends on the caller method, but the first argument is always an error object or null. When we go for the asynchronous method, an exception thrown during function execution cannot be detected in a try/catch statement. The event happens after the JavaScript engine leaves the try block.
965
965
966
966
In the preceding example, if any exception is thrown during the reading of the file, it lands on the callback function as the first and mandatory parameter.
967
967
@@ -1239,7 +1239,7 @@ Each type of Stream is an EventEmitter instance and throws several events at dif
1239
1239
***data** − This event is fired when there is data is available to read.
1240
1240
***end** − This event is fired when there is no more data to read.
1241
1241
***error** − This event is fired when there is any error receiving or writing data.
1242
-
***finish** − This event is fired when all the data has been flushed to underlying system.
1242
+
***finish** − This event is fired when all the data has been flushed to underlying system.
1243
1243
1244
1244
**1. Reading from a Stream:**
1245
1245
@@ -1587,7 +1587,7 @@ PM2 is a production process manager for Node.js applications with a built-in loa
1587
1587
$ pm2 start app.js-i max --name "Balancer"
1588
1588
```
1589
1589
1590
-
This command will run the app.js file on the cluster mode to the total no of core available on your server.
1590
+
This command will run the app.js file on the cluster mode to the total no of core available on your server.
1591
1591
1592
1592
<palign="center">
1593
1593
<imgsrc="assets/pm2-load-balancer.png"alt="Load Balancing using PM2"width="500px" />
0 commit comments