NDFiber is an open source and free implementation of fibers in Objective-C that can be used within the main thread since there are a few situations where things need to occur in the main thread making use of multiple threads difficult (for example AppleScript need to run in the main thread but doing so prevents any user interacting).