title: How to call a selector
body: <p>I am implementing the <code>scheduleTimer</code> function of a <code>Timer</code> in a mock Timer to be able to unit test my code. It looks like this:</p>
  
  <pre><code>static func scheduledTimer(
      timeInterval ti: TimeInterval,
      target aTarget: Any,
      selector aSelector: Selector,
      userInfo: Any?,
      repeats yesOrNo: Bool) -&gt; Timer
  </code></pre>
  
  <p>I need to be able to call <code>aSelector</code> like a closure, but I'm not sure how that's possible with it being a <code>Selector</code>. How can I do this?</p>