Using Promises for Non-AJAX Asynchronous Callbacks in JavaScript

1 minute read Published

Using promises to avoid callback race conditions in JavaScript.

After recently falling prey (again) to the immediate execution of a counter-based timing function used to execute a non-Ajax asynchronous callback method in JS, I wanted to share this very useful article I stumbled upon while looking for an approach that would meet my needs.

Check it out here:

Ledger Nano X - The secure hardware wallet