|
|
|
|
|
by untog
3334 days ago
|
|
In your example the async code doesn't really help anything though - the next statement has to wait for the response from the previous one before continuing. In your example you'd probably want to be using Promise.all to run two IO operations simultaneously. |
|
The benefits are generally larger-scale than a single method.