From a1cae99e23c7a6a7834fb7de1038102098917962 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 3 Jul 2020 17:05:38 -0400 Subject: [PATCH] Drop entrypoints from `Actor` --- tractor/_actor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tractor/_actor.py b/tractor/_actor.py index 5eb829a..e160c25 100644 --- a/tractor/_actor.py +++ b/tractor/_actor.py @@ -242,6 +242,9 @@ class Actor: _parent_main_data: Dict[str, str] _parent_chan_cs: Optional[trio.CancelScope] = None + # if started on ``asycio`` running ``trio`` in guest mode + _infected_aio: bool = False + def __init__( self, name: str, @@ -1093,6 +1096,8 @@ class Actor: log.info(f"Handshake with actor {uid}@{chan.raddr} complete") return uid + def is_infected_aio(self) -> bool: + return self._infected_aio class Arbiter(Actor): """A special actor who knows all the other actors and always has