span class="nf">methodThatTakesEscaping</span><span class="p">(</span><span class="nv">closure</span><span class="p">:</span> <span class="p">{</span> <span class="nv">$0</span> <span class="o">*</span> <span class="mi">2</span> <span class="p">})</span>

<span class="c1">// It is possible to check based on .value(...) for escaping closures</span>
<span class="c1">// It requires to register closure comparator to Matcher</span>
<span class="c1">// Nevertheless - we have not found ane good reason to do that y