eonist / my-swift-projects

An overview of my most relevant open-source projects on GitHub
263 stars 22 forks source link

remove requirement for a FileWatcher instance to be retained by the caller #6

Closed paperlib closed 7 years ago

paperlib commented 7 years ago

Provide the release and retain callbacks to the stream context (FSEventStreamContext) so that it does itself manage the lifecycle of its info pointer (up to now, the the fileWatcher instance had to be scoped to your class / retained somewhere for as long as a FileWatcher instance should be kept alive watching over files)