Class: Opal::BuilderScheduler::Prefork

Inherits:
Opal::BuilderScheduler show all
Defined in:
opal/lib/opal/builder_scheduler/prefork.rb

Defined Under Namespace

Classes: Fork, ForkSet

Instance Attribute Summary

Attributes inherited from Opal::BuilderScheduler

#builder

Instance Method Summary collapse

Methods inherited from Opal::BuilderScheduler

#initialize

Constructor Details

This class inherits a constructor from Opal::BuilderScheduler

Instance Method Details

#process_requires(rel_path, requires, autoloads, options) ⇒ Object

We hook into the process_requires method



9
10
11
12
13
14
15
16
17
18
# File 'opal/lib/opal/builder_scheduler/prefork.rb', line 9

def process_requires(rel_path, requires, autoloads, options)
  return if requires.empty?

  if @in_fork
    io = @in_fork
    io.send(:new_requires, rel_path, requires, autoloads, options)
  else
    prefork_reactor(rel_path, requires, autoloads, options)
  end
end