abstract class App::Parser

Overview

Base class for all content parsers.

Direct Known Subclasses

Defined in:

app/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(processor : App::Processor, parse_tasks : Channel(NamedTuple(idx: Int32, url: String, title: String, gt: Time::Span, response: HTTP::Client::Response)), capacity) #

[View source]

Instance Method Detail

def run #

Implements parse worker. Usually spawned in dedicated Fibers.


[View source]
abstract def worker #

[View source]