Class: Conflow::Promise
- Inherits:
-
Redis::Field
- Object
- Redis::Field
- Conflow::Promise
- Includes:
- Redis::Identifier, Redis::Model
- Defined in:
- lib/conflow/promise.rb
Overview
Promises are stubs for returned values from jobs. They will be resolved once the job is done.
Instance Attribute Summary collapse
-
#hash_field ⇒ Conflow::Redis::ValueField
Redis field name in the result hash.
-
#job_id ⇒ Conflow::Redis::ValueField
ID of the job that promised result.
-
#key ⇒ Conflow::Redis::ValueField
Key of job’s result which is promised.
Attributes included from Redis::Identifier
Method Summary
Methods included from Redis::Identifier
Methods included from Redis::Model
#==, #assign_attributes, #destroy!, included
Methods inherited from Redis::Field
Instance Attribute Details
#hash_field ⇒ Conflow::Redis::ValueField
Redis field name in the result hash
20 |
# File 'lib/conflow/promise.rb', line 20 field :hash_field, :raw_value |
#job_id ⇒ Conflow::Redis::ValueField
ID of the job that promised result
12 |
# File 'lib/conflow/promise.rb', line 12 field :job_id, :raw_value |
#key ⇒ Conflow::Redis::ValueField
Key of job’s result which is promised
16 |
# File 'lib/conflow/promise.rb', line 16 field :result_key, :raw_value |