Class: Knjappserver::Thread_instance
- Inherits:
-
Object
- Object
- Knjappserver::Thread_instance
- Defined in:
- lib/include/class_knjappserver_threadding.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(args) ⇒ Thread_instance
constructor
A new instance of Thread_instance.
- #join ⇒ Object
- #join_error ⇒ Object
Constructor Details
#initialize(args) ⇒ Thread_instance
Returns a new instance of Thread_instance.
84 85 86 |
# File 'lib/include/class_knjappserver_threadding.rb', line 84 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
82 83 84 |
# File 'lib/include/class_knjappserver_threadding.rb', line 82 def args @args end |
Instance Method Details
#join ⇒ Object
88 89 90 |
# File 'lib/include/class_knjappserver_threadding.rb', line 88 def join sleep 0.1 while !@args[:done] end |
#join_error ⇒ Object
92 93 94 95 |
# File 'lib/include/class_knjappserver_threadding.rb', line 92 def join_error self.join raise @args[:error_obj] if @args[:error_obj] end |