Skip to content

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

Merged
merged 2 commits into from
Oct 3, 2022
Merged

Promisification #272

merged 2 commits into from
Oct 3, 2022

Conversation

akseyh
Copy link
Contributor

@akseyh akseyh commented Jun 27, 2022

No description provided.


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:
Copy link
Contributor

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.
Copy link
Contributor

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.

Copy link
Contributor

@sahinyanlik sahinyanlik left a 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?

@akseyh
Copy link
Contributor Author

akseyh commented Sep 15, 2022

Yorumlara göre tekrar güncelleyebilir misiniz?

Tabi güncelliyorum

@sahinyanlik sahinyanlik merged commit f17df35 into javascript-tutorial:master Oct 3, 2022
@javascript-translate-bot

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

@sahinyanlik
Copy link
Contributor

Teşekkürler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants