spec/jobs.rb in asynchronic-3.0.3 vs spec/jobs.rb in asynchronic-4.0.0
- old
+ new
@@ -7,12 +7,12 @@
class SequentialJob < Asynchronic::Job
def call
async Step1, input: params[:input]
-
- async Step2, dependency: Step1,
+
+ async Step2, dependency: Step1,
input: params[:input]
nil
end
@@ -30,11 +30,11 @@
end
class GraphJob < Asynchronic::Job
-
+
def call
async Sum, input: params[:input]
async TenPercent, input: result(Sum)
@@ -111,17 +111,17 @@
class AliasJob < Asynchronic::Job
def call
async Write, alias: :word_1,
text: 'Take'
-
- async Write, alias: :word_2,
- text: 'it',
+
+ async Write, alias: :word_2,
+ text: 'it',
prefix: result(:word_1)
-
- async Write, alias: :word_3,
- text: 'easy',
+
+ async Write, alias: :word_3,
+ text: 'easy',
prefix: result(:word_2)
result :word_3
end
@@ -400,6 +400,6 @@
end
def before_finalize
raise 'Before finalize error'
end
-end
+end
\ No newline at end of file