API documentation
class lime.app.Promise<T>
var future:Future<T>
var isCompleted:Bool
function new(): Void
function complete(data:T): Promise<T>
function completeWith(future:Future<T>): Promise<T>
function error(msg:Dynamic): Promise<T>
function progress(progress:Float): Promise<T>