struct TermBuf::Commands::Apply

Overview

Run arbitrary work against the buffer on the owning fibre. The escape hatch for anything the command set does not cover, and the only safe way to read the buffer from outside.

Defined in:

termbuf/terminal/command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(action : Buffer -> Nil, reply : Channel(Exception | Nil) | Nil) #

[View source]

Instance Method Detail

def action : Buffer -> Nil #

def clone #

[View source]
def copy_with(action _action = @action, reply _reply = @reply) #

[View source]
def reply : Channel(Exception | Nil) | Nil #