azure-sdk-for-python
azure-sdk-for-python copied to clipboard
[EventHub] Samples Typing
notes:
-
async PartitionContext
comes fromazure.eventhub.aio._eventprocessor
while sync comes fromazure.eventhubcallable
-
on_event
expects anOptional[EventData]
. Why would we even invoke the callable if the EventData was None ? -
SequenceEvents
which is the expected type (an alias for a long type) foron_batch_event
is not exposed publicly