libtcspc.SourceHalted

exception libtcspc.SourceHalted[source]

Bases: Exception

Exception raised by BufferAccessor.pump when the buffer was halted.

A pump thread observes this (instead of returning normally) when BufferAccessor.halt was called before the buffer’s producer half was flushed – that is, when the source stopped without flushing. It indicates a clean (non-error) early termination of the consumer half.