title: Why do we need to convert an Observable to Promise to get a resolved value?
body: <p>From: <a href="https://medium.com/@ole.ersoy/synchronous-programming-with-rxjs-observable-6276721e674a" rel="nofollow noreferrer">https://medium.com/@ole.ersoy/synchronous-programming-with-rxjs-observable-6276721e674a</a></p>
  <blockquote>
  <p>Scenario</p>
  <p>We want to return a resolved value from our Observable.<br />
  Approach 1</p>
  <p>Turn the Observable into a Promise and await it like this:</p>
  <p>async function returnTrue()<br />
  {<br />
  return await of(true).toPromise();<br />
  }<br />
  //logs true<br />
  returnTrue().then(console.log);</p>
  <p>The return value is now guaranteed to be available, as long as the
  observable did not error out.</p>
  </blockquote>
  <p>Why do we need to turn an Observable to a Promise to get a resolved result? Observables are not capable on their own to get resolved results?</p>
  <p>What's the point that I am missing here?</p>