function Promise.prototype.andThenCall(A,k,...)assert(type(k)=="\102\117\110\099\116\105\111\110",string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\097\110\100\084\104\101\110\067\097\108\108"))local S,X=pack(...)return A:_andThen(debug.traceback(nil,2),function()return k(unpack(X,1,S))end)end

function Promise.prototype:andThenCall(callback, ...)
	assert(type(callback) == "function", string.format(ERROR_NON_FUNCTION, "Promise:andThenCall"))
	local length, values = pack(...)
	return self:_andThen(debug.traceback(nil, 2), function()
		return callback(unpack(values, 1, length))
	end)
end
