3 ms·
Return value is not needed, so just "call away" -- asynchronously. I guess this means when a return value is used, the call is synchronous, and after running t
by pepa65 2y ago
Return value is not needed, so just "call away" -- asynchronously.
I guess this means when a return value is used, the call is synchronous, and after running the method processing resumes where things left off.
- kll 2y agoYes indeed, assigning really turns into an await on an async value. You can explicitly write it as a = await async remote_actor.foobar() So the local actor goes to sleep, awaiting the remote, then the RTS notices the returned value and place the actor on the readyQ for execution, thus waking up from the await.