CL-GSERVER.ACTOR
ask-s ACTOR MESSAGE &KEY &KEY TIME-OUT → result
ACTOR
:
a
T
MESSAGE
:
a
T
&KEY
:
a
T
TIME-OUT
:
a
T
result
: a T.
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.