libtcspc.Demultiplex

final class libtcspc.Demultiplex[source]

Bases: Node

Processor that unwraps a variant type back to individual event types.

Reverses the effect of Multiplex: each incoming VariantEvent is unwrapped and the carried event is emitted as its individual type.

The input must consist only of VariantEvent`(s); non-variant input events are rejected. This matches the typical buffering use case, where the events have just been carried through a single-type stage as a `VariantEvent.

Notes

Events handled:

  • VariantEvent: unwrapped; the carried event passes through as its individual type.

  • End of input: pass through.

See also

tcspc::demultiplex()

The underlying C++ factory function.

Multiplex

Combine the individual event types into a VariantEvent.

VariantEvent

The accepted input event type.