lib/nanoc/base/services/compiler/phases/resume.rb in nanoc-4.7.0 vs lib/nanoc/base/services/compiler/phases/resume.rb in nanoc-4.7.1
- old
+ new
@@ -1,13 +1,11 @@
module Nanoc::Int::Compiler::Phases
# Provides functionality for suspending and resuming item rep compilation (using fibers).
class Resume < Abstract
include Nanoc::Int::ContractsSupport
- NAME = 'resume'.freeze
-
def initialize(wrapped:)
- super(wrapped: wrapped, name: NAME)
+ super(wrapped: wrapped)
end
contract Nanoc::Int::ItemRep, C::KeywordArgs[is_outdated: C::Bool], C::Func[C::None => C::Any] => C::Any
def run(rep, is_outdated:)
fiber = fiber_for(rep, is_outdated: is_outdated) { yield }