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.
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; a buffer
value of com.twitter.io.Buf.Eof indicates that the stream has
completed.
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