Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
by repeatedly requesting the given number of bytes.
Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
by repeatedly requesting the given number of bytes. The last chunk
may be less than the requested size.
This implementation closes the AsynchronousFileChannel
when finished
or in the event of an error.
Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
opened for the provided Path
by repeatedly requesting the given number of
bytes.
Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
opened for the provided Path
by repeatedly requesting the given number of
bytes. The last chunk may be less than the requested size.
This implementation closes the AsynchronousFileChannel
when finished
or in the event of an error.
Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
opened for the provided URI
by repeatedly requesting the given number of
bytes.
Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
opened for the provided URI
by repeatedly requesting the given number of
bytes. The last chunk may be less than the requested size.
This implementation closes the AsynchronousFileChannel
when finished
or in the event of an error.
Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
opened for the provided path by repeatedly requesting the given number of
bytes.
Creates a Channel[Task,Int,ByteVector]
from an AsynchronousFileChannel
opened for the provided path by repeatedly requesting the given number of
bytes. The last chunk may be less than the requested size.
This implementation closes the AsynchronousFileChannel
when finished
or in the event of an error.
Creates a Channel[Task,Int,ByteBuffer]
from an AsynchronousFileChannel
by repeatedly requesting the given number of bytes.
Creates a Channel[Task,Int,ByteBuffer]
from an AsynchronousFileChannel
by repeatedly requesting the given number of bytes. The last chunk
may be less than the requested size. The emitted ByteBuffer
isn't reused.
This implementation closes the AsynchronousFileChannel
when finished
or in the event of an error.
Creates a Sink[Task, ByteVector]
representation of the AsynchronousFileChannel
which will be closed when this Process
is halted.
Creates a Sink[Task, ByteVector]
representation of an AsynchronousFileChannel
at the specified Path
which will be closed when this Process
is halted.
Creates a Sink[Task, ByteVector]
representation of an AsynchronousFileChannel
,
creating the file at the specified Path
if necessary, which will be closed
when this Process
is halted.
Creates a Sink[Task, ByteVector]
representation of an AsynchronousFileChannel
which will be closed when this Process
is halted.
Creates a Sink[Task, ByteVector]
representation of an AsynchronousFileChannel
,
creating the file if necessary, which will be closed
when this Process
is halted.
Creates a Sink[Task, ByteVector]
representation of an AsynchronousFileChannel
which will be closed when this Process
is halted.
Creates a Sink[Task, ByteVector]
representation of an AsynchronousFileChannel
,
creating the file if necessary, which will be closed
when this Process
is halted.
Creates a Sink[Task,ByteBuffer]
from an AsynchronousFileChannel
,
which will be closed when this Process
is halted.
Creates a Process[Task,String]
from the lines of the AsynchronousFileChannel
using the nio2 framework to make the process asynchronous.
Creates a Process[Task,String]
from the lines of the AsynchronousFileChannel
using the nio2 framework to make the process asynchronous. The
resource
combinator is used to ensure the AsynchronousFileChannel
is automatically closed on completion.
Creates a Process[Task,String]
from the lines of a file, using
the nio2 AsynchronousFileChannel
to make the process asynchronous.
Creates a Process[Task,String]
from the lines of a file, using
the nio2 AsynchronousFileChannel
to make the process asynchronous. The
resource
combinator is used to ensure the AsynchronousFileChannel
is automatically closed on completion.
Creates a Process[Task,String]
from the lines of a file, using
the nio2 framework to make the process asynchronous.
Creates a Process[Task,String]
from the lines of a file, using
the nio2 framework to make the process asynchronous. The
resource
combinator is used to ensure the AsynchronousFileChannel
is automatically closed on completion.
Creates a Process[Task,String]
from the text of the AsynchronousFileChannel
using the nio2 framework to make the process asynchronous.
Creates a Process[Task,String]
from the text of the AsynchronousFileChannel
using the nio2 framework to make the process asynchronous. The
resource
combinator is used to ensure the AsynchronousFileChannel
is automatically closed on completion.