class Async::Container::Forked::Child::Instance

def exec(*arguments, ready: true, **options)

@parameter options [Hash] Additional options to pass to {::Process.exec}.
@parameter ready [Boolean] If true, informs the parent process that the child is ready. Otherwise, the child process will need to use a notification protocol to inform the parent process that it is ready.
@parameter arguments [Array] The arguments to pass to the new process.

This method replaces the child process with the new executable, thus this method never returns.
Replace the current child process with a different one. Forwards arguments and options to {::Process.exec}.
def exec(*arguments, ready: true, **options)
	if ready
		self.ready!(status: "(exec)")
	else
		self.before_spawn(arguments, options)
	end
	
	::Process.exec(*arguments, **options)
end