TITLE ^

Stream::Combiner - combines different streams to a single stream.

VERSION ^

version 0.1

SYNOPSIS ^

Please have a look at the examples examples/streams/Combiner.pir and examples/streams/FileLines.pir.

DESCRIPTION ^

TBD

METHODS ^

combiner = stream."combiner"( sub )

Sets (or just returns) the combiner sub.

assign stream, source

Assign a source to this stream. You can call assign several times to assign several sources to the stream.

is = stream."connected"()

Returns 1 if all assigned sources are connected, 0 otherwise.

source."rawRead"() (internal)

Reads from all assigned sources and calls the combiner.

AUTHOR ^

Jens Rieks <parrot at jensbeimsurfen dot de> is the author and maintainer. Please send patches and suggestions to the Perl 6 Internals mailing list.

COPYRIGHT ^

Copyright (c) 2004, the Perl Foundation.


parrot