InputModule

PackageAxial.Process

Summary

NameSignatureSynopsis
emptyInput.empty Supplies no bytes and closes stdin.
textInput.text valueSupplies encoded text incrementally when execution begins.
bytesInput.bytes valueSupplies exact bytes when execution begins.
fileInput.file pathStreams bytes from a file when execution begins.
readInput.read producerReads one asynchronous byte block when execution begins.
produceInput.produce producerProduces asynchronous byte blocks with backpressure.
streamInput.stream sourceAdapts a .NET stream into a backpressured input source.

empty

Input.empty
Member
Supplies no bytes and closes stdin.

Returns

InputSource

text

Input.text value
Member
Supplies encoded text incrementally when execution begins.

Parameters

NameTypeDescription
valuestring

Returns

InputSource

bytes

Input.bytes value
Member
Supplies exact bytes when execution begins.

Parameters

NameTypeDescription
valuebyte array

Returns

InputSource

file

Input.file path
Member
Streams bytes from a file when execution begins.

Parameters

NameTypeDescription
pathstring

Returns

InputSource

read

Input.read producer
Member
Reads one asynchronous byte block when execution begins.

Parameters

NameTypeDescription
producerunit -> Async<byte array>

Returns

InputSource

produce

Input.produce producer
Member
Produces asynchronous byte blocks with backpressure.

Parameters

NameTypeDescription
producer(byte array -> Async<unit>) -> Async<unit>

Returns

InputSource

stream

Input.stream source
Member
Adapts a .NET stream into a backpressured input source.

Parameters

NameTypeDescription
sourceStream

Returns

InputSource