Add `Actor.is_root()` convenience predicate meth
parent
07c2ba5c0d
commit
28819bf5d3
|
|
@ -183,6 +183,14 @@ class Actor:
|
||||||
def is_registrar(self) -> bool:
|
def is_registrar(self) -> bool:
|
||||||
return self.is_arbiter
|
return self.is_arbiter
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_root(self) -> bool:
|
||||||
|
'''
|
||||||
|
This actor is the parent most in the tree?
|
||||||
|
|
||||||
|
'''
|
||||||
|
return _state.is_root_process()
|
||||||
|
|
||||||
msg_buffer_size: int = 2**6
|
msg_buffer_size: int = 2**6
|
||||||
|
|
||||||
# nursery placeholders filled in by `async_main()`,
|
# nursery placeholders filled in by `async_main()`,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue