title: Should synchronous code called by Promise .then create a new Promise
body: <p>I've implemented some code, where asynchronous code is followed by some synchronous functions.  For example:</p>
  
  <pre><code>function processSomeAsyncData() {
    asyncFuncCall()
      .then(syncFunction)
      .catch(error);
  }
  </code></pre>
  
  <p>If I understand correctly <code>then</code> is also a Promise. Then, should I create a promise in the synchronous code as well?</p>
  
  <pre><code>function syncFunction() {
    const p = new Promise (function (resolve, reject) {
      //Do some sync stuff
      ...
      resolve(data);
    }
    return p;
  }
  </code></pre>
  
  <p>If that isn't necessary, how do you reject the promise from the synchronous code if an error occurred?</p>