Skip to content

Allow settings getters to await their responses - #36

Open
strohganoff wants to merge 1 commit into
refactor/event-stream-processingfrom
feature/await-settings-responses
Open

strohganoff wants to merge 1 commit into
refactor/event-stream-processingfrom
feature/await-settings-responses

Conversation

@strohganoff

Copy link
Copy Markdown
Owner

Add optional response waits to get_settings() and get_global_settings(). Both methods still send and return None by default. With wait_for_response=True, the broker matches the response by request ID and checks the event type and action context where applicable.

The router resolves the waiter before queueing the same event for ordinary dispatch. A handler can await its response while the sequential dispatcher is paused. This also covers Python 3.10 timeout handling and ignores non-string IDs during correlation. Rejecting new waits once routing ends is tracked as follow-up work.

Validation: 207 tests passed locally on Python 3.10 and 3.11.

Stacked on #35.

@strohganoff
strohganoff force-pushed the refactor/event-stream-processing branch from 190c3ad to 0d7fdb7 Compare December 4, 2026 04:14
@strohganoff
strohganoff force-pushed the feature/await-settings-responses branch from 17b3246 to f834e36 Compare December 4, 2026 04:14
@strohganoff
strohganoff force-pushed the refactor/event-stream-processing branch from 0d7fdb7 to 6e52564 Compare December 4, 2026 04:23
@strohganoff
strohganoff force-pushed the feature/await-settings-responses branch from f834e36 to fdc20c1 Compare December 4, 2026 04:23
Preserve the UUID4 response model and correlate pending requests using UUID values. Keep compact hexadecimal IDs on the wire and add regression tests.
@strohganoff
strohganoff force-pushed the refactor/event-stream-processing branch from 6e52564 to 3617b98 Compare December 4, 2026 04:38
@strohganoff
strohganoff force-pushed the feature/await-settings-responses branch from fdc20c1 to d97e789 Compare December 4, 2026 04:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant