Class: Opal::BuilderScheduler::Prefork

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

Defined Under Namespace

Modules: OrderCorrector 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



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'opal/lib/opal/builder_scheduler/prefork.rb', line 10

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
    processed = prefork_reactor(rel_path, requires, autoloads, options)

    processed = OrderCorrector.correct_order(processed, requires, builder)

    builder.processed.append(*processed)
  end
end