IPCLinkEndpoint::AsyncDoRequest (open)
Sends a message and waits for the reply. Throws if a reply to another messages comes in.
Syntax
LOADLIB "wh::internal/jobs.whlib";
OBJECT FUNCTION AsyncDoRequest(RECORD message)
Parameters
RECORD message
Message to send
Return value
OBJECT
Possible objecttypes:
Promsise for the result of the action
RECORD msg
The received message (only when status = 'ok')
INTEGER64 msgid
Id of the reply (only when status = 'ok')
INTEGER64 replyto
Id of the orginal message (only when status = 'ok')
STRING status
One of the following codes: 'ok': message received successfully 'timeout': no message was received before 'gone': other endpoint of the link has been closed