Generic Function ask-s

Package:

CL-GSERVER.ACTOR

Syntax:

  ask-s ACTOR MESSAGE &KEY &KEY TIME-OUTresult

Arguments and Values:

Description:

Sends a message to the `actor'. `ask-s' is synchronous and waits for a result. Specify `timeout' if a message is to be expected after a certain time. An `:handler-error' with `timeout' condition will be returned is the call timed out.

=ask-s= assumes, no matter if =ask-s= is issued from outside or inside an actor, that the response is delivered back to the caller. That's why =ask-s= does block the execution until the result is available. The 'receive' function handler must specify the result as the ~car~ of the ~cons~ result.