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 messageMessage to send
Return value
OBJECTPossible objecttypes:
Promsise for the result of the action
RECORD msgThe received message (only when status = 'ok')
INTEGER64 msgidId of the reply (only when status = 'ok')
INTEGER64 replytoId of the orginal message (only when status = 'ok')
STRING statusOne of the following codes: 'ok': message received successfully 'timeout': no message was received before 'gone': other endpoint of the link has been closed