Skip to content

AsyncBuildPhase

Async counterpart of BuildPhase. Builds async subscriptions.

Source code in event_sourcery/_event_store/_async/subscription.py
class AsyncBuildPhase:
    """
    Async counterpart of `BuildPhase`. Builds async subscriptions.
    """

    def build_iter(
        self,
        timelimit: Seconds | timedelta,
    ) -> AsyncIterator[Recorded | None]:
        raise NotImplementedError()

    def build_batch(
        self,
        size: int,
        timelimit: Seconds | timedelta,
    ) -> AsyncIterator[list[Recorded]]:
        raise NotImplementedError()