edby="toc_promises">
<p><a href="https://api.emberjs.com/ember-data/3.4/classes/DS.Model/methods/save?anchor=save"><code>save()</code></a> returns
a promise, which makes it easy to asynchronously handle success and failure
scenarios.  Here's a common pattern:</p>
<pre class="language-javascript line-numbers"><code class="javascript language-javascript"><span class="token keyword">let</span> post <span class="token operator">=</span> store<span class="token punctuation">.</span><span class="token function">c