More single doc-strs in discovery mod

ctx_cancel_semantics_and_overruns
Tyler Goodlet 2023-03-07 17:09:43 -05:00
parent cfb2bc0fee
commit d75343106b
2 changed files with 11 additions and 4 deletions

View File

@ -41,8 +41,10 @@ async def get_arbiter(
port: int,
) -> AsyncGenerator[Union[Portal, LocalPortal], None]:
'''Return a portal instance connected to a local or remote
'''
Return a portal instance connected to a local or remote
arbiter.
'''
actor = current_actor()
@ -134,12 +136,16 @@ async def find_actor(
@acm
async def wait_for_actor(
name: str,
arbiter_sockaddr: tuple[str, int] | None = None
arbiter_sockaddr: tuple[str, int] | None = None,
# registry_addr: tuple[str, int] | None = None,
) -> AsyncGenerator[Portal, None]:
"""Wait on an actor to register with the arbiter.
'''
Wait on an actor to register with the arbiter.
A portal to the first registered actor is returned.
"""
'''
actor = current_actor()
async with get_arbiter(

View File

@ -825,6 +825,7 @@ class Actor:
1,
f'\n*** No stream open on `{self.uid[0]}` side! ***\n'
)
text = '\n'.join(lines)
if ctx._backpressure: