Promises

JavaScript is single threaded.
In C# we can use events and callbacks to achieve multi-threading.
It is possible to use events in JavaScript but there effectiveness is limited.
Promises are similar to event listeners with a few important differences.
A promise can only suceed or fail once






© 2018 Better Solutions Limited. All Rights Reserved. © 2018 Better Solutions Limited TopNext