S
S
Serezha2017-08-23 16:01:08
JavaScript
Serezha, 2017-08-23 16:01:08

Is it possible to not resolve/reject a js promise?

php monkey jung js.
Is it possible not to resolve/reject a promise (native promises), or is it still not worth it?
My logic: I pass data to the function, under some circumstances I do not want to continue the execution of the chain of promises, while I do not consider this combination of circumstances to be an error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Azamat Petrovich, 2017-08-23
Ahen @Ahen

Inside resolve add a condition for this set of circumstances?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question