      <h1>
<small>Function</small>
<span class="name">`try`(on:​_:​)</span>
</h1>

<html><body><pre class="highlight"><code><span class="keyword">public</span> <span class="keyword">func</span> <span class="function">`try`</span>&lt;<span class="variable">A</span>&gt;(<span class="variable">on</span> <span class="variable">queue</span>: <span class="type">DispatchQueue</span> = .<span class="variable">main</span>, <span class="keyword">_</span> <span class="variable">handler</span>: <span class="attribu