function Signal.new(e)local X=setmetatable({},Signal)if e then X.connectionsChanged=Signal.new()end X.connections={}X.totalConnections=0 X.waiting={}X.totalWaiting=0 return X end

function Signal.new(createConnectionsChangedSignal)
	local self = setmetatable({}, Signal)
	
	if createConnectionsChangedSignal then
		self.connectionsChanged = Signal.new()
	end

	self.connections = {}
	self.totalConnections = 0
	self.waiting = {}
	self.totalWaiting = 0

	return self
end


