'Does Gulp.parallel() have race condition?

In Gulp 4 we have a wonderful parallel(...tasks) API, but the doc didn't specify how this works under the hood. I assume it uses multithreading? In that case, I guess people should be careful not to introduce race conditions among the tasks (say, reading & writing the same global variable).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source