layervault/LVDebounce — pull request #3 by aventurella (2014-05-09 15:13:04+00:00)
Title: adds runloop selection

When using this in my NSDocument based application, I have the following defined for my NSDocument subclass:

```objc
+ (BOOL)canConcurrentlyReadDocumentsOfType:(NSString *)typeName
```

This returns `YES` which is great for my needs, but while the document is loading I need to schedule some debouncing operations, also good, except the current implementation of LVDebounce always assumes the current RunLoop. Once the background loading of the NSDocument completes, the background thread performing the load will finish and the debounce action will never fire.

Allowing the RunLoop to be specifically defined solves this problem. In my loading setup, I just set the runloop in my call to LVDebounce to be `[NSRunLoop mainRunLoop]` and everything works as expected.

Again, if the runloop is not specified, the `currentRunLoop` is assumed.