You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected result: Should be able to access AsyncResult.ready without blocking until remote call has completed.
Actual result: if async_result.ready: blocks until remote call has completed. I am unable to find the code containing the blocking call. The AsyncResult.ready implementation shows no blocking calls, yet stepping into that method from my code somehow blocks before entering it.
Steps to reproduce:
asleep = rpyc.async_(conn.modules.time.sleep)
result = asleep(5)
assert result.ready == False # This assertion fails because it blocks until the sleep completes 5 seconds after the previous line.
Environment
rpyc version: 5.3.0
python version: 3.9.13
operating system: Linux/Ubuntu
Minimal example
See above
The text was updated successfully, but these errors were encountered:
patrickkidd
changed the title
How to poll an async result without blocking?
How to poll an AsyncResult without blocking?
Jul 26, 2023
Is it only possible to execute a single async call at a time? Maybe is this limited by the single python thread on the remote side? The use case here is to be able to run multiple remote method calls in parallel, ideally using the same objects. So I suppose threads.
Describe the issue briefly here, including:
AsyncResult.ready
without blocking until remote call has completed.if async_result.ready:
blocks until remote call has completed. I am unable to find the code containing the blocking call. TheAsyncResult.ready
implementation shows no blocking calls, yet stepping into that method from my code somehow blocks before entering it.Steps to reproduce:
Environment
Minimal example
See above
The text was updated successfully, but these errors were encountered: