all</code> hook.
But you can write following:</p>
<pre><code class="hljs css language-js"><span class="hljs-comment">// Async Task return a promise.</span>
<span class="hljs-keyword">const</span> callAsync = <span class="hljs-function"><span class="hljs-params">text</span> =&gt;</span> {
    <span class="hljs-comment">// do something by async</span>
    <span class="hljs-keyword">return</span> <span class="hljs-built_in">Promise</span>.resolve(text);
};

<span class="hljs-built_in">module</span>.exports = <