promise object in node.js

626
1
08-05-2017 12:30 AM
ZakiEldsoque1
New Contributor

how make promise object using in dojo to execute task work sequentially  in node.js ?

0 Kudos
1 Reply
ThomasSolow
Occasional Contributor III

Promises in node are the same as promises in the browser.  If you're pulling in dojo, you can use dojo/deferred.

The JS standard library also has a promise implementation, just Promise, that is mostly compatible with the dojo version.

This looks helpful for information about using dojo in node: Dojo and Node.js - Dojo Toolkit Tutorial