123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newAnalysisToken

[ GitHub ]

  
# 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