AsyncOutboxStorageStrategy
Interface for async backend outbox storage implementation.
Source code in event_sourcery/_event_store/_async/outbox.py
outbox_entries(limit)
Returns an async iterator over async context managers for outbox entries to be published. The async context manager ensures transactional processing.
If the event is processed without exception, it is removed from the outbox.
If an exception occurs, the event remains in the outbox for retry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
limit
|
int
|
The maximum number of entries to return. |
required |
Returns:
| Type | Description |
|---|---|
AsyncIterator[AbstractAsyncContextManager[RecordedRaw]]
|
AsyncIterator[AbstractAsyncContextManager[RecordedRaw]]: Async context managers to wrap record processing |