utahiosmac / jobs

MIT License
15 stars 3 forks source link

Inline Documentation #5

Open davidbjames opened 8 years ago

davidbjames commented 8 years ago

This project has got real potential, but it's lacking inline documentation.

For example, what is the purpose of produce() and productionHandler? Why does JobQueue.enqueue create a production handler that itself enqueues the job again?

(I've created a diagram to help understand this project's architecture. https://cl.ly/hNKz )

king7532 commented 8 years ago

I would love to see a sample app that uses this framework. Maybe something along the lines of the Apple sample code SeismicXML

"SeismicXML" demonstrates how to use NSXMLParser to parse XML data. The XML parsing occurs on a background thread using NSOperation and updates the earthquakes table view with batches of parsed objects.