asynctnt.stream

Module Contents

Classes

Stream

class asynctnt.stream.Stream[source]

Bases: asynctnt.api.Api

property stream_id: int[source]

Current stream is

async __aenter__()[source]

If used as Context Manager begin() and commit()/rollback() are called automatically

Returns:

async __aexit__(exc_type, exc_val, exc_tb)[source]

Normally commit() is called on context manager exit, but in the case of exception rollback() is called