Module: Bob::BackgroundEngines

Defined in:
lib/bob/background_engines.rb,
lib/bob/background_engines/foreground.rb

Overview

Different engines to run code in background. An engine is any object that responds to #call and takes a Proc object, which should be executed “in the background”. The different engines are:

Constant Summary collapse

Foreground =

Dummy engine that just runs in the foreground (useful for tests).

lambda {|b| b.call }