When I call a function that returns a Promise do I have to use .then()
on the promise.
ex. somefunc() returns a promise. Can I just do somefunc();
or do I have to do
somefunc().then(
function(){
},
function(){
})
Similarly if I do use .then()
do I have to specify both the resolve
and reject
functions or can I ignore the reject
.
ex.
somefunc().then(
function(){
})
My concerns are possible memory etc. leaks.