Skip to content

Pass session to ResultReceiver and PrepareReceiver callbacks#84

Merged
SeanTAllen merged 1 commit intomainfrom
sean/pass-session-to-receivers
Feb 11, 2026
Merged

Pass session to ResultReceiver and PrepareReceiver callbacks#84
SeanTAllen merged 1 commit intomainfrom
sean/pass-session-to-receivers

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

Adds session: Session as the first parameter to all ResultReceiver and PrepareReceiver callbacks, matching the convention already used by SessionStatusNotify. This is a breaking API change that enables receivers to execute follow-up queries, close the session, or perform other session operations directly from the callback without needing to store a session reference at construction time.

Resolves the TODO in result_receiver.pony.

Design: #72

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Feb 11, 2026
…backs

Pass Session as the first parameter to all ResultReceiver and
PrepareReceiver callbacks, matching the convention already used by
SessionStatusNotify. This allows receivers to execute follow-up queries,
close the session, or perform other session operations directly from the
callback without needing to store a session reference at construction
time.

Resolves the TODO in result_receiver.pony.

Design: #72
@SeanTAllen SeanTAllen force-pushed the sean/pass-session-to-receivers branch from af315c8 to a00fe6e Compare February 11, 2026 13:08
@SeanTAllen SeanTAllen merged commit 5c74777 into main Feb 11, 2026
8 checks passed
@SeanTAllen SeanTAllen deleted the sean/pass-session-to-receivers branch February 11, 2026 13:18
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants