title: Javascript - .catch async callback
body: <p>Is it an anti-pattern to use an async method for catching errors?</p>
  <pre><code>await something().catch(aysnc (err) =&gt; {
     console.log(err);
     await rollback();
  });
  </code></pre>
  <p>I am doing this because I need to make sure that the rollback has been executed before letting the user execute the method again:</p>
  <pre><code>const method = async () =&gt; {
     if(isExecuting.current) return;
  
     isExecuting.current = true;
  
  
     await something().catch(aysnc (err) =&gt; {
         console.log(err);
         await rollback(); &lt;--- I NEED TO AWAIT THIS TOO 
     });
  
     
     isExecuting.current = false;
  }
  </code></pre>