title: Easiest way to wait for google server-side function to resolve
body: <p>I need the client side code to wait for the called server side (google.script.run) function to complete before running any more code.</p>
  <p>The <code>withSuccessHandler(successFunc)</code> does not cause lines of code that are after the server call to wait.</p>
  <p>What I've done:</p>
  <pre><code>async function func(){
     await google.script.run.withSuccessHandler(myFunc).serverFunc();
     console.log(&quot;done&quot;);
  }
  func();
  </code></pre>
  <p>How can the code wait to execute the <code>console.log</code> line until after the server side function resolves?</p>