class RatatuiRuby::Tea::Command::CancellationToken::NoneToken
Null object for commands that ignore cancellation.
Some commands complete quickly and do not check for cancellation. Pass this when the command signature requires a token but the command does not use it.
Ractor-shareable. Calling cancel! does nothing.
Public Instance Methods
Source
# File lib/ratatui_ruby/tea/command/cancellation_token.rb, line 125 def cancel! nil end
Example
CancellationToken::NONE.cancel! # => nil (no effect)