Class: RobotLab::RactorJob
- Inherits:
-
Data
- Object
- Data
- RobotLab::RactorJob
- Defined in:
- lib/robot_lab/ractor_job.rb
Overview
Carrier for work crossing a Ractor boundary.
All fields must be Ractor-shareable (frozen Data, frozen String, frozen Hash, or a RactorQueue). Build with RactorBoundary.freeze_deep on the payload before constructing.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#reply_queue ⇒ Object
readonly
Returns the value of attribute reply_queue.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
17 18 19 |
# File 'lib/robot_lab/ractor_job.rb', line 17 def id @id end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload
17 18 19 |
# File 'lib/robot_lab/ractor_job.rb', line 17 def payload @payload end |
#reply_queue ⇒ Object (readonly)
Returns the value of attribute reply_queue
17 18 19 |
# File 'lib/robot_lab/ractor_job.rb', line 17 def reply_queue @reply_queue end |
#type ⇒ Object (readonly)
Returns the value of attribute type
17 18 19 |
# File 'lib/robot_lab/ractor_job.rb', line 17 def type @type end |