Skip to content

Conversation

@davidjedw
Copy link

Utility functions to send deferred sync and async postback IPC messages with error trapping at various points.
Also includes function variants to send these via async broadcast.

@davidjedw davidjedw mentioned this pull request Nov 21, 2025
Copy link
Member

@jonathonmcmurray jonathonmcmurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few additional things needed here

di/async/async.q Outdated
/ error trapping sending the query down the handle followed by an async flush
.[{x@y; x(::);1b};(h;tosend);0b]}

broadcastdeferred:{[handles;query]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename this to just deferred seeing as we don't have a non-broadcast version any more

di/async/init.q Outdated
@@ -0,0 +1,3 @@
\l ::async.q

export:([deferred;postback;broadcastdeferred;broadcastpostback]) No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs updated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests need updated, they still reference both broadcast & non-broadcast versions

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs need updated, still reference both broadcast & non-broadcast versions

@@ -0,0 +1,69 @@
## KDB+/Q Asynchronous Communication Library

This library provides kdb+/q functions for sending either deferred synchronous or asynchronous postback requests from a client process over a handle or list of handles, with error trapping at various points. Either type of request can be sent via conventional kdb+/q IPC or asynchronous broadcast.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This library provides kdb+/q functions for sending either deferred synchronous or asynchronous postback requests from a client process over a handle or list of handles, with error trapping at various points. Either type of request can be sent via conventional kdb+/q IPC or asynchronous broadcast.
This library provides kdb+/q functions for sending either deferred synchronous or asynchronous postback requests from a client process over a handle or list of handles, with error trapping at various points. Either type of request can be sent via conventional kdb+/q IPC or asynchronous broadcast.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(also last sentence needs updated)

di/async/async.q Outdated
@@ -0,0 +1,25 @@
/ library for sending async messages from a client process

send:{[w;h;q]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

send function can be removed also as only relates to non-broadcast versions

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.

4 participants