d</code>, which was used as the basis for <code>m.request</code>. <code>v1.x</code> uses Promises instead, and implements a <a href="promises.html">polyfill</a> in non-supporting environments. In situations where you would have used <code>m.deferred</code>, you should use Promises instead.</p>
<h3 id="v02x18"><a href="#v02x18"><code>v0.2.x</code></a></h3>
<pre><code class="lang-javascript">var greetAsync = function() {
    var deferred = m.deferred()
    setTimeout(function() {
        deferred.resolve(&quo