Execute the main listening loop to accept connections

After the loop ends, the underlying resources are freed.

When the environment variable NIT_TESTING is set to true, the loop is not executed but the resources are still freed.

Property definitions

nitcorn $ HttpFactory :: run
	# Execute the main listening loop to accept connections
	#
	# After the loop ends, the underlying resources are freed.
	#
	# When the environment variable `NIT_TESTING` is set to `true`,
	# the loop is not executed but the resources are still freed.
	fun run
	do
		if "NIT_TESTING".environ != "true" then
			event_base.dispatch
		end

		event_base.free
	end
lib/nitcorn/reactor.nit:139,2--152,4

nitcorn :: signal_handler $ HttpFactory :: run
	redef fun run
	do
		for handler in signal_handlers do handler.add
		super
	end
lib/nitcorn/signal_handler.nit:28,2--32,4