Is there a way to disallow runtime errors to crash app on background thread? : <p>I'm running a method in this way</p>

<pre><code>dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), { () -&gt; Void in
        ...
})
</code></pre>

<p>I want this logic to avoid crashing app if something goes wrong inside. Is there any way to do so?</p>

<p>Please don't answer fix the bug if any, I'm talking about any potencial bug I haven't found. This runs on a timer to process data from server, if crashes, it will make app unusable since it will crash at start up. </p>

<p>App can live without this data processing in worst case, but crashing app on start up is much more worse since app can't be used at all.</p>

<p>I know Swift doesn't have a catch for unexpected exceptions but maybe there is a way to avoid background threads to crash app if things goes wrong</p>
