FileReader

Base class for file readers which can read a file or standard handle line by line in a Fiber context, yielding until a line is available.

Constructors

this
this()
Undocumented in source.

Members

Functions

isReading
bool isReading()
Undocumented in source.
run
void run()
Undocumented in source.
stop
void stop()
Undocumented in source.
yieldData
ubyte[] yieldData(size_t length, bool* whileThisIs, bool equalToThis)

Yields until the specified length of data is available, then removes the data from the incoming data stream atomically and returns a duplicate of it. Returns null if the file reader stops while reading.

yieldLine
string yieldLine(bool* whileThisIs, bool equalToThis)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

data
ubyte[] data;
Undocumented in source.
mutex
Mutex mutex;
Undocumented in source.

Meta