<s> import time <EOL> from Rpyc import SocketConnection , Async <EOL> c1 = SocketConnection ( "<STR_LIT:localhost>" ) <EOL> f1 = Async ( c1 . modules . time . sleep ) <EOL> r1 = f1 ( <NUM_LIT:9> ) <EOL> r2 = f1 ( <NUM_LIT:11> ) <EOL> while not r1 . is_ready or not r2 . is_ready : <EOL> print "<STR_LIT:!>" <EOL> time . sleep ( <NUM_LIT:1> ) <EOL> print "<STR_LIT>" <EOL> c2 = SocketConnection ( "<STR_LIT:localhost>" ) <EOL> f2 = Async ( c2 . modules . time . sleep ) <EOL> r1 = f1 ( <NUM_LIT:9> ) <EOL> r2 = f2 ( <NUM_LIT:11> ) <EOL> while not r1 . is_ready or not r2 . is_ready : <EOL> print "<STR_LIT:!>" <EOL> time . sleep ( <NUM_LIT:1> ) <EOL> print "<STR_LIT>" <EOL> r1 = f1 ( <NUM_LIT:9> ) <EOL> r2 = f2 ( <NUM_LIT:11> ) <EOL> def blah ( res ) : <EOL> print "<STR_LIT>" % ( res . result , ) <EOL> r1 . on_ready = blah <EOL> while not r1 . is_ready or not r2 . is_ready : <EOL> print "<STR_LIT:!>" <EOL> time . sleep ( <NUM_LIT:1> ) </s>
