Class: RubyLsp::Job
Overview
A request that will sit in the queue until it’s executed
Instance Attribute Summary collapse
-
#cancelled ⇒ Object
readonly
Returns the value of attribute cancelled.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #cancel ⇒ Object
-
#initialize(request:, cancelled:) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(request:, cancelled:) ⇒ Job
Returns a new instance of Job.
75 76 77 78 |
# File 'lib/ruby_lsp/utils.rb', line 75 def initialize(request:, cancelled:) @request = request @cancelled = cancelled end |
Instance Attribute Details
#cancelled ⇒ Object (readonly)
Returns the value of attribute cancelled.
72 73 74 |
# File 'lib/ruby_lsp/utils.rb', line 72 def cancelled @cancelled end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
69 70 71 |
# File 'lib/ruby_lsp/utils.rb', line 69 def request @request end |
Instance Method Details
#cancel ⇒ Object
81 82 83 |
# File 'lib/ruby_lsp/utils.rb', line 81 def cancel @cancelled = true end |