class documentation

class CancellableStream: (source)

View In Hierarchy

Stream wrapper for real-time events, logs, etc. from the server. Example: >>> events = client.events() >>> for event in events: ... print(event) >>> # and cancel from another thread >>> events.close()

Method __init__ Undocumented
Method __iter__ Undocumented
Method __next__ Undocumented
Method close Closes the event streaming.
Instance Variable _response Undocumented
Instance Variable _stream Undocumented
def __init__(self, stream, response): (source)

Undocumented

def __iter__(self): (source)

Undocumented

def __next__(self): (source)

Undocumented

def close(self): (source)

Closes the event streaming.

_response = (source)

Undocumented

Undocumented