net.sf.asyncobjects.asyncscala.stream
next element
The #close()
operation should be idempotent.
The #close()
operation should be idempotent. It should be no problem with closing the same object twice.
The close operation should cancel the current operation if possible. The close should throw exception only
in serious cases (for example in case of data loss, or inconsistent data)
a promise that resolves when object finishes closing
Check if closing underlying resource has been started.
Check if closing underlying resource has been started.
Check for validity only
Check for validity only
Check if the stream is valid (invalidation is preferred over closed
Check if the stream is valid (invalidation is preferred over closed
Invalidate stream
Invalidate stream
Check if stream is closed
Check if stream is closed
Check if the stream is valid
Check if the stream is valid
a promise for the next element. Note means end of the stream
The request queue for the stream (it protects both, next and close)
The request queue for the stream (it protects both, next and close)
Start closing underlying resource, if you need to wait for completion, use the method #close
Start closing underlying resource, if you need to wait for completion, use the method #close
Simple abstract base class for the streams