class TypeProf::LSP::Text::AnalysisToken

Public Class Methods

new() click to toggle source
# File typeprof-0.21.11/lib/typeprof/lsp.rb, line 52
def initialize
  @timer = Utils::TimerCancelToken.new(1)
  @cancelled = false
end

Public Instance Methods

cancel() click to toggle source
# File typeprof-0.21.11/lib/typeprof/lsp.rb, line 57
def cancel
  @cancelled = true
end
cancelled?() click to toggle source
# File typeprof-0.21.11/lib/typeprof/lsp.rb, line 61
def cancelled?
  @timer.cancelled? || @cancelled
end