title: How to configure MainThread checker for your own code?
body: <p>I have a class method that I want to always execute in the main thread.</p>
  <p>Is there a way I could configure XCode Main Thread checker to raise a &quot;purple warning&quot; if that method is called on a background thread (just like it does for UI-related methods) ?</p>