forked from goodboy/tractor
1
0
Fork 0

Tweak `Channel._cancel_called` comment

multihomed
Tyler Goodlet 2023-10-23 17:47:55 -04:00
parent df31047ecb
commit f4e63465de
1 changed files with 5 additions and 3 deletions

View File

@ -294,9 +294,11 @@ class Channel:
self._agen = self._aiter_recv() self._agen = self._aiter_recv()
self._exc: Optional[Exception] = None # set if far end actor errors self._exc: Optional[Exception] = None # set if far end actor errors
self._closed: bool = False self._closed: bool = False
# flag set on ``Portal.cancel_actor()`` indicating
# remote (peer) cancellation of the far end actor runtime. # flag set by ``Portal.cancel_actor()`` indicating remote
self._cancel_called: bool = False # set on ``Portal.cancel_actor()`` # (possibly peer) cancellation of the far end actor
# runtime.
self._cancel_called: bool = False
@classmethod @classmethod
def from_stream( def from_stream(