forked from goodboy/tractor
1
0
Fork 0
faster_daemon_cancels
Tyler Goodlet 2021-11-28 19:16:47 -05:00
parent 57e98b25e7
commit 83da92d4cb
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
Fix ``Portal.run_in_actor()`` returns ``None`` result.
``None`` was being used as the cached result flag and obviously breaks
on a ``None`` returned from the remote target task. This would cause an
infinite hang if user code ever called ``Portal.result()`` *before* the
nursery exit. The simple fix is to use the ``Channel.uid`` as the
initial "no-result-received-yet" flag.