send_string_async
send_string_async — transmits a string asynchronously.
Syntax
send_string_async (task, string)
Arguments
- task
A task descriptor as assigned to a
locate_task
call.
- string
Returns
t if the message
was successfully delivered, otherwise nil.
Description
This function delivers the string via
asynchronous interprocess communication to a non-Cascade DataHub
receiving task. If the message could not
be delivered, send_string_async returns
nil. There is
no indication of the status of the receiving
task as a result of processing the
message.
Example
Task 1:
Gamma> init_ipc ("a","a");
t
Gamma> tsk = locate_task("b",t);
#<Task:9751>
Gamma> send_string_async(tsk, "2 + 2");
t
Gamma> send_string_async(tsk,string(list(#a,#b,#c)));
t
Gamma>
Task 2:
Gamma> init_ipc ("b","b");
t
Gamma> while(t) next_event();