Class: TypeProf::LSP::Text::AnalysisToken
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
TypeProf::Utils::CancelToken
|
Defined in: | lib/typeprof/lsp.rb |
Class Method Summary
- .new ⇒ AnalysisToken constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new ⇒ AnalysisToken
# File 'lib/typeprof/lsp.rb', line 52
def initialize @timer = Utils::TimerCancelToken.new(1) @cancelled = false end
Instance Attribute Details
#cancelled? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/typeprof/lsp.rb', line 61
def cancelled? @timer.cancelled? || @cancelled end
Instance Method Details
#cancel
[ GitHub ]# File 'lib/typeprof/lsp.rb', line 57
def cancel @cancelled = true end