local function m(m,b)local R=topoRuntime.useHookState(b,cleanup)if R.time==nil or os.clock()-R.time>=m then R.time=os.clock()R.expiry=os.clock()+m return true end return false end return m

local function useThrottle(seconds, discriminator)
	local storage = topoRuntime.useHookState(discriminator, cleanup)

	if storage.time == nil or os.clock() - storage.time >= seconds then
		storage.time = os.clock()
		storage.expiry = os.clock() + seconds
		return true
	end

	return false
end

return useThrottle
