function StateHolder._init(O,b)O._allowedTransitions=b.allowedTransitions O._callbacks=b.callbacks if b.initial then spawn(function()O:transition(b.initial,true)end)end end

function StateHolder:_init(config)
	self._allowedTransitions = config.allowedTransitions
	self._callbacks = config.callbacks

	if config.initial then
		spawn(
			function()
				self:transition(config.initial, true)
			end
		)
	end
end
