class TypeProf::LSP::Text::AnalysisToken

Public Class Methods

new() click to toggle source
# File typeprof-0.21.9/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.9/lib/typeprof/lsp.rb, line 57
def cancel
  @cancelled = true
end
cancelled?() click to toggle source
# File typeprof-0.21.9/lib/typeprof/lsp.rb, line 61
def cancelled?
  @timer.cancelled? || @cancelled
end