11 lines
255 B
Python
11 lines
255 B
Python
"""Adapter contract for the Stage 4 event fabric."""
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Adapter(ABC):
|
|
name = "adapter"
|
|
|
|
@abstractmethod
|
|
def poll(self, conn) -> int:
|
|
"""Emit zero or more events; return number of new events."""
|