Skip to content

Instantly share code, notes, and snippets.

@artemis15
Created August 13, 2019 10:42
Show Gist options
  • Save artemis15/710786cc15597a09c0ef3d287b0095d6 to your computer and use it in GitHub Desktop.
Save artemis15/710786cc15597a09c0ef3d287b0095d6 to your computer and use it in GitHub Desktop.
Example of Blocking I/O operation
const _fs= require('fs');
let _contents = _fs.readFileSync('package.json').toString();
console.log(_contents);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment