Skip to content

Instantly share code, notes, and snippets.

@dj-amadeous
Created June 5, 2018 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dj-amadeous/463bc26b33a9e2ad38ab661f40ab8696 to your computer and use it in GitHub Desktop.
Save dj-amadeous/463bc26b33a9e2ad38ab661f40ab8696 to your computer and use it in GitHub Desktop.
evans-MBP:chapter19 evancornish$ node 03_using_generic_flow_control.js
starting...
printing args first time
[]
undefined
undefined
Iteration: 1
[]
printing args first time
[ null, 13 ]
null
13
Iteration: 2
[ 13 ]
printing args first time
[ null, 10, <Buffer 41 70 70 65 6e 64 20 74 68 69> ]
null
10
Iteration: 3
[ 10, <Buffer 41 70 70 65 6e 64 20 74 68 69> ]
printing args first time
[ null ]
null
undefined
Iteration: 4
[]
printing args first time
[ null, 13 ]
null
13
Iteration: 5
[ 13 ]
printing args first time
[ null,
Stats {
dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4194304,
ino: 4308673868,
size: 87,
blocks: 8,
atimeMs: 1528232293144.9285,
mtimeMs: 1528232291818.6497,
ctimeMs: 1528232291818.6497,
birthtimeMs: 1528231437764.5994,
atime: 2018-06-05T20:58:13.145Z,
mtime: 2018-06-05T20:58:11.819Z,
ctime: 2018-06-05T20:58:11.819Z,
birthtime: 2018-06-05T20:43:57.765Z } ]
null
Stats {
dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4194304,
ino: 4308673868,
size: 87,
blocks: 8,
atimeMs: 1528232293144.9285,
mtimeMs: 1528232291818.6497,
ctimeMs: 1528232291818.6497,
birthtimeMs: 1528231437764.5994,
atime: 2018-06-05T20:58:13.145Z,
mtime: 2018-06-05T20:58:11.819Z,
ctime: 2018-06-05T20:58:11.819Z,
birthtime: 2018-06-05T20:43:57.765Z }
Iteration: 6
[ Stats {
dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4194304,
ino: 4308673868,
size: 87,
blocks: 8,
atimeMs: 1528232293144.9285,
mtimeMs: 1528232291818.6497,
ctimeMs: 1528232291818.6497,
birthtimeMs: 1528231437764.5994,
atime: 2018-06-05T20:58:13.145Z,
mtime: 2018-06-05T20:58:11.819Z,
ctime: 2018-06-05T20:58:11.819Z,
birthtime: 2018-06-05T20:43:57.765Z } ]
printing args first time
[ null, 10, <Buffer 41 70 70 65 6e 64 20 74 68 69> ]
null
10
Iteration: 7
[ 10, <Buffer 41 70 70 65 6e 64 20 74 68 69> ]
printing args first time
[ null ]
null
undefined
done
evans-MBP:chapter19 evancornish$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment