C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::IAbortableInputStream Class Reference

Input stream that supports aborting the read operation. More...

#include <abortable_stream.h>

Inheritance diagram for NYT::IAbortableInputStream:
NYT::IFileReader NYT::TRawTableReader

Public Member Functions

virtual void Abort ()
 Immediately abort the stream, cancelling current and future reads.
virtual bool IsAborted () const
 Check whether the stream has been aborted.

Static Public Member Functions

static bool IsAbortedError (const std::exception_ptr &error)

Detailed Description

Input stream that supports aborting the read operation.

Extends IInputStream with the ability to immediately cancel current or future reads.

Member Function Documentation

◆ Abort()

virtual void NYT::IAbortableInputStream::Abort ( )
virtual

Immediately abort the stream, cancelling current and future reads.

Some clients have already implemented this interface, so using pure virtual method leads to build errors.


The documentation for this class was generated from the following file: