function Subscription.Complete(x)if x._state~=stateTypes.PENDING then return end x._state=stateTypes.COMPLETE if x._completeCallback then x._completeCallback()end x:_doCleanup()end
--[=[
	Completes the subscription, preventing anything else from being
	emitted.
]=]
function Subscription:Complete()
	if self._state ~= stateTypes.PENDING then
		return
	end

	self._state = stateTypes.COMPLETE
	if self._completeCallback then
		self._completeCallback()
	end

	self:_doCleanup()
end
