class FilesToPrompt::ConcurrentProcessor

Overview

Handles concurrent file processing using channels and fibers

Defined in:

concurrent_processor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(worker_count : Int32 = 4) #

[View source]

Instance Method Detail

def completion_channel : Channel(Nil) #

[View source]
def completion_channel=(completion_channel : Channel(Nil)) #

[View source]
def job_channel : Channel(FileJob) #

[View source]
def job_channel=(job_channel : Channel(FileJob)) #

[View source]
def process_files_concurrently(file_jobs : Array(FileJob), app : App) #

Processes files concurrently using the worker pool


[View source]
def result_channel : Channel(FileResult) #

[View source]
def result_channel=(result_channel : Channel(FileResult)) #

[View source]
def worker_completion_channel : Channel(Nil) #

[View source]
def worker_completion_channel=(worker_completion_channel : Channel(Nil)) #

[View source]
def worker_count : Int32 #

[View source]
def worker_count=(worker_count : Int32) #

[View source]