A simple Promise API in Objective-C