June 2014
Intermediate to advanced
696 pages
38h 52m
English
A useful feature of the util module is the ability to write data out to stdout and stderr synchronously, which means blocking the process until the data is written out. This allows you to ensure that when the data is written, the system wasn’t in the act of changing it.
To synchronously write data out, you can use one of the following calls, each of which blocks the process until the write completes:
util.debug(string): Writes the string out to stderr.
util.error([...]): Accepts multiple arguments and writes ...
Read now
Unlock full access