function Promise.prototype.doneCall(O,P,...)assert(isCallable(P),string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\100\111\110\101\067\097\108\108"))local Q,G=pack(...)return O:_finally(debug.traceback(nil,2),function()return P(unpack(G,1,Q))end,true)end
--[=[
	Same as `andThenCall`, except for `done`.

	Attaches a `done` handler to this Promise that calls the given callback with the predefined arguments.

	@param callback (...: any) -> any
	@param ...? any -- Additional arguments which will be passed to `callback`
	@return Promise
]=]
function Promise.prototype:doneCall(callback, ...)
	assert(isCallable(callback), string.format(ERROR_NON_FUNCTION, "Promise:doneCall"))
	local length, values = pack(...)
	return self:_finally(debug.traceback(nil, 2), function()
		return callback(unpack(values, 1, length))
	end, true)
end
