-
Notifications
You must be signed in to change notification settings - Fork 115
Promisification #272
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
Promisification #272
Conversation
|
||
Here's a modification of `promisify` that returns an array of multiple callback results: | ||
İşte bir dizi çoklu callback sonucu döndüren bir `promisify` modifikasyonu: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modifikasyonu yerine değişikliği olabilir. İngilizce'den böyle dilimize yerleşmiş çok kelime bulunuyor. Biliyorum ayrıştırmak zor fakat tekrar okuyunca çıkıyor ortaya.
f = promisify(f, true); | ||
f(...).then(arrayOfResults => ..., err => ...) | ||
``` | ||
|
||
In some cases, `err` may be absent at all: `callback(result)`, or there's something exotic in the callback format, then we can promisify such functions without using the helper, manually. | ||
Bazı durumlarda `err` olmayabilir: `callback(result)` veya callback biçiminde egzotik bir şey varsa, bu tür fonksiyonları helper kullanmadan manuel olarak promisify edebiliriz. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exotic'i bire bir çevirmenize gerek yok. Yukarıda "Now" da vardı. Böyle kullanımlarda kendinize göre farklı kelimeler de kullanabilirsiniz.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yorumlara göre tekrar güncelleyebilir misiniz?
Tabi güncelliyorum |
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
Teşekkürler. |
No description provided.