class TypeProf::LSP::Text::AnalysisToken
Public Class Methods
new()
click to toggle source
# File typeprof-0.21.2/lib/typeprof/lsp.rb, line 50 def initialize @timer = Utils::TimerCancelToken.new(1) @cancelled = false end
Public Instance Methods
cancel()
click to toggle source
# File typeprof-0.21.2/lib/typeprof/lsp.rb, line 55 def cancel @cancelled = true end
cancelled?()
click to toggle source
# File typeprof-0.21.2/lib/typeprof/lsp.rb, line 59 def cancelled? @timer.cancelled? || @cancelled end