method
in_background
v2_2_9 -
Show latest stable
- Class:
Gem::DependencyInstaller
in_background(what)public
No documentation available.
# File lib/rubygems/dependency_installer.rb, line 343
def in_background what # :nodoc:
fork_happened = false
if @build_docs_in_background and Process.respond_to?(:fork)
begin
Process.fork do
yield
end
fork_happened = true
say "#{what} in a background process."
rescue NotImplementedError
end
end
yield unless fork_happened
end