function Promise.prototype.now(s,Y)local G=debug.traceback(nil,2)if s._status==Promise.Status.Resolved then return s:_andThen(G,function(...)return...end)else return Promise.reject(Y==nil and Error.new({kind=Error.Kind.NotResolvedInTime;error="\084\104\105\115 \080\114\111\109\105\115\101 \119\097\115 \110\111\116 \114\101\115\111\108\118\101\100 \105\110 \116\105\109\101 \102\111\114 \058\110\111\119\040\041";context="\058\110\111\119\040\041 \119\097\115 \099\097\108\108\101\100 \097\116\058\n\n"..G})or Y)end end

function Promise.prototype:now(rejectionValue)
	local traceback = debug.traceback(nil, 2)
	if self._status == Promise.Status.Resolved then
		return self:_andThen(traceback, function(...)
			return ...
		end)
	else
		return Promise.reject(rejectionValue == nil and Error.new({
			kind = Error.Kind.NotResolvedInTime,
			error = "This Promise was not resolved in time for :now()",
			context = ":now() was called at:\n\n" .. traceback,
		}) or rejectionValue)
	end
end
