--[=[
	@param signal RBXScriptSignal
	@param fn (...: any) -> any
	@return RBXScriptConnection
	Connects the function to the signal, adds the connection
	to the Janitor, and then returns the connection.

	```lua
	Janitor:Connect(workspace.ChildAdded, function(instance)
		print(instance.Name .. " added to workspace")
	end)
	```
]=]

function Janitor:Connect(signal, fn)
	return self:Add(signal:Connect(fn))
end

