promises handler


  • QA Engineer

    Is there any point in using promises to build, for example, a DOM`e block at any event? Or it's easier to hang the processor, but it happens and build a new block inside eventListener's. Because in any case, rejecting is likely to never occur in such a task. Tell me if this is a stiff task.



  • You mixed two completely different concepts: Developments and Promises (Promises). At the time event arbitrary number of times Promise It must only be done once. Well, you've rightly noticed that there's no analog in the concept of events. reject of Promises

    So in the case described, you must not use Promises instead developments


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2