A port of NSOperationQueue from Cocoa, to the web