function Promise.prototype.done(G,X)assert(X==nil or isCallable(X),string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\100\111\110\101"))return G:_finally(debug.traceback(nil,2),X,true)end

function Promise.prototype:done(doneHandler)
	assert(doneHandler == nil or isCallable(doneHandler), string.format(ERROR_NON_FUNCTION, "Promise:done"))
	return self:_finally(debug.traceback(nil, 2), doneHandler, true)
end
