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
permalink #initialize(request:, cancelled:) ⇒ Job
Returns a new instance of Job.
72 73 74 75 |
# File 'lib/ruby_lsp/utils.rb', line 72 def initialize(request:, cancelled:) @request = request @cancelled = cancelled end |
Instance Attribute Details
permalink #cancelled ⇒ Object (readonly)
Returns the value of attribute cancelled.
69 70 71 |
# File 'lib/ruby_lsp/utils.rb', line 69 def cancelled @cancelled end |
permalink #request ⇒ Object (readonly)
Returns the value of attribute request.
66 67 68 |
# File 'lib/ruby_lsp/utils.rb', line 66 def request @request end |
Instance Method Details
permalink #cancel ⇒ Object
[View source]
78 79 80 |
# File 'lib/ruby_lsp/utils.rb', line 78 def cancel @cancelled = true end |