abstract class Tokoroten::Worker

Defined in:

tokoroten/worker.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(main_reader : IO::FileDescriptor, main_writer : IO::FileDescriptor, worker_reader : IO::FileDescriptor, worker_writer : IO::FileDescriptor) #

[View source]

Class Method Detail

def self.create(num : Int32 = 1, read_timeout : Int32 | Nil = nil) : Array(Worker) #

[View source]

Instance Method Detail

def exec(message : String | Nil = nil) #

[View source]
def exists? : Bool #

[View source]
def kill #

[View source]
def receive : String | Nil #

[View source]
def response(message : String) #

[View source]
def run #

[View source]
abstract def task(message : String) #

[View source]
def wait_thread #

[View source]