News for hackers. Stuff that matters.
Re:A Modern JavaScript Tutorial by postalrat on Friday December 11, 2020 @12:08PM (#25387998)
Sometimes you may need to handle a promise in a function that can't be made async.
Re:A Modern JavaScript Tutorial by nailer on Friday December 11, 2020 @05:03PM (#25391863)
If a function is inherently sync, then it shouldn't be using promises.