title: Check if user is still within CLRegion after 30 seconds - 1 minute
body: <p>I'm currently sending local notifications to users when they enter regions. However, I don't want to notify them immediately because sometimes they will drive past these regions and don't want to be notified about them all of the time.</p>
  
  <p>So whenever a user enters the region, didEnterRegion is called. I want to wait 30 seconds (or a configurable amount of time), then check if the user is still in the region (which I know how to do already) and if the user is still in that region, then notify the user. </p>
  
  <p>Android has a way of doing this with a dwell property.</p>
  
  <p>I know I can use dispatch_after(), but I can't gain the main thread back when the phone is asleep (or the app is suspended).</p>
  
  <p>The phone will wake up automatically, by Apple's design, when a region is entered. When that happens, I want to wait for 30 seconds, then check again if user is still in location. Here's a code snippet that doesn't currently work:</p>
  
  <pre><code>// triggered when user enters monitored region.
  func locationManager(manager: CLLocationManager, didEnterRegion region: CLRegion) {
      // Wait 60 seconds and if user is still within region, try to send notification 
      delay(60){
          self.locationManager.requestStateForRegion(region)
      }
  }
  
  func locationManager(manager: CLLocationManager, didDetermineState state: CLRegionState, forRegion region: CLRegion) {
      // only notify user if user is still within this region.
      if state == CLRegionState.Inside{
          if region is CLCircularRegion {
              handleRegionEvent(region)
          }
      }
  }
  </code></pre>