briancoyner / AsyncWorkflow

Techniques for building "async workflows" using `NSOperation` and `NSOperationQueue`.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Async Workflow

All apps have asynchronous workflows. Apple's NSOperation and NSOperationQueue provide a foundation for building arbitrarily complex workflows. This demo code coincides with my STL CocoaHeads talk on techniques for building "async workflows".

The demo code shows how to:

  • use dependent operations
  • pass data between operations using a thread-safe key/value store (i.e Session)
  • track progress using NSProgress
  • support an easy to understand cancellation policy
  • allow app background execution (with just a few lines of code)

Presentation Slides

Be sure to review the CocoaHeads presentation slides for additional notes and details.

Additional Resources

Here's a short list of related WWDC videos

About

Techniques for building "async workflows" using `NSOperation` and `NSOperationQueue`.

License:MIT License


Languages

Language:Swift 97.7%Language:Objective-C 2.3%