Discards this Reader and closes the underlying InputStream
Discards this Reader and closes the underlying InputStream
Close the resource with the given timeout.
Close the resource with the given timeout. This timeout is advisory, giving the callee some leeway, for example to drain clients or finish up other tasks.
Close the resource.
Close the resource. The returned Future is completed when the resource has been fully relinquished.
closeAwaitably is intended to be used as a wrapper for
close
.
closeAwaitably is intended to be used as a wrapper for
close
. The underlying f
will be called at most once.
Discard this reader: its output is no longer required.
Discard this reader: its output is no longer required.
This closes the underlying InputStream
.
Is this Awaitable ready? In other words: would calling Awaitable.ready block?
Is this Awaitable ready? In other words: would calling Awaitable.ready block?
Asynchronously read at most min(n
, maxBufferSize
) bytes from
the InputStream
.
Asynchronously read at most min(n
, maxBufferSize
) bytes from
the InputStream
. The returned Future represents the results of
the read operation. Any failure indicates an error; an empty buffer
indicates that the stream has completed.
the underlying InputStream
is closed on read of EOF.
Support for Await.ready
.
Support for Await.ready
. The use of the implicit permit is an
access control mechanism: only Await.ready
may call this
method.
Support for Await.result
.
Support for Await.result
. The use of the implicit permit is an
access control mechanism: only Await.result
may call this
method.
Provides the Reader API for an
InputStream
.The given
InputStream
will be closed when Reader.read reaches the EOF or a call to discard() or close().