-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help Land Promises in Core #1
Comments
(Using the current *Async naming for these. Will knock out more tomorrow when I'm not starting so late!) LGTM signature LGTM signature |
LGTM signature |
May I suggest adding "Research potential fixes for nodejs#5084" in "Misc. Tasks"? |
I recommend writing a short tool that compares the resolves/rejects with bluebird's promisifyAll that works for every proper nodeback API and has years of production experience in huge projects. |
Remove a pointless adapter frame by fixing up the function's formal parameter count. Before: frame #0: 0x000033257ea446d5 onParserExecute(...) frame #1: 0x000033257ea3b93f <adaptor> frame #2: 0x000033257ea41959 <internal> frame #3: 0x000033257e9840ff <entry> After: frame #0: 0x00000956287446d5 onParserExecute(...) frame #1: 0x0000095628741959 <internal> frame #2: 0x00000956286840ff <entry> PR-URL: nodejs#17693 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe>
Ref nodejs#5020.
OK folks, this is a big PR, it will take time and effort to land. If you want to help land it, here are some excellent places to pitch in. If you notice something missing — raise your hand here by saying ":hand: signature
cluster.disconnect
" or ":hand: docsnet.connectAsync
", then PR this repo'spromises
branch with your changes. You will be credited in the resulting commit. If an item looks good to you, respond to this issue with, for example, "LGTM docsdns.lookupService
". I'll be moderating this issue pretty strictly to keep it to just the tasks folks have volunteered for and their results — any other comments will be deleted. This issue isn't for code review — it's just for checking docs and promise resolution results.One thing before you contribute: I can't promise (har, har) that these changes will make it in — but I'll do everything I can to make sure your effort is well-spent. Contributing to this issue is a positive sign that you want to see this land in Node, and is way more effective than a 👍 on the PR.
Thanks for your help, everyone!
Steps:
promises
branch —git checkout -b promises --track origin/promises
../configure; make -j8
.Misc. Tasks
promises
branch to tip ofmaster
.Make sure these functions resolve and reject as expected:
child_process.ChildProcess#send
cluster.disconnect
dgram.Socket#bind
dgram.Socket#close
dgram.Socket#send
dgram.Socket#sendto
dns.lookupService
dns.lookup
dns.resolve
fs.access
fs.appendFile
fs.chmod
fs.chown
fs.close
fs.exists
fs.fchmod
fs.fchown
fs.fdatasync
fs.fstat
fs.fsync
fs.ftruncate
fs.futimes
fs.lchmod
fs.lchown
fs.link
fs.lstat
fs.mkdir
fs.open
fs.readFile
fs.readdir
fs.readlink
fs.realpath
fs.rename
fs.rmdir
fs.stat
fs.symlink
fs.unlink
fs.utimes
fs.writeFile
net.Socket#setTimeout
readline.Interface#question
repl.REPLServer#complete
zlib.deflateRaw
zlib.deflate
zlib.gunzip
zlib.gzip
zlib.inflateRaw
zlib.inflate
zlib.unzip
net.connectAsync
tls.connectAsync
crypto.randomBytesAsync
crypto.pbkdf2Async
crypto.pseudoRandomBytesAsync
crypto.rngAsync
crypto.prngAsync
http.getAsync
https.getAsync
http.requestAsync
https.requestAsync
child_process.execAsync
child_process.execFileAsync
Make sure that the docs have been updated:
child_process.ChildProcess#send
cluster.disconnect
dgram.Socket#bind
dgram.Socket#close
dgram.Socket#send
dgram.Socket#sendto
dns.lookupService
dns.lookup
dns.resolve
fs.access
fs.appendFile
fs.chmod
fs.chown
fs.close
fs.exists
fs.fchmod
fs.fchown
fs.fdatasync
fs.fstat
fs.fsync
fs.ftruncate
fs.futimes
fs.lchmod
fs.lchown
fs.link
fs.lstat
fs.mkdir
fs.open
fs.readFile
fs.readdir
fs.readlink
fs.realpath
fs.rename
fs.rmdir
fs.stat
fs.symlink
fs.unlink
fs.utimes
fs.writeFile
net.Socket#setTimeout
readline.Interface#question
repl.REPLServer#complete
zlib.deflateRaw
zlib.deflate
zlib.gunzip
zlib.gzip
zlib.inflateRaw
zlib.inflate
zlib.unzip
net.connectAsync
tls.connectAsync
crypto.randomBytesAsync
crypto.pbkdf2Async
crypto.pseudoRandomBytesAsync
crypto.rngAsync
crypto.prngAsync
http.getAsync
https.getAsync
http.requestAsync
https.requestAsync
child_process.execAsync
child_process.execFileAsync
The text was updated successfully, but these errors were encountered: