forked from goodboy/tractor
1
0
Fork 0

Force keyword only args in actor spawn methods

reorg_entry_points
Tyler Goodlet 2020-07-20 16:08:03 -04:00
parent 8fbdfd6a3a
commit 7c73775474
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class ActorNursery:
async def start_actor( async def start_actor(
self, self,
name: str, name: str,
*,
bind_addr: Tuple[str, int] = ('127.0.0.1', 0), bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
statespace: Optional[Dict[str, Any]] = None, statespace: Optional[Dict[str, Any]] = None,
rpc_module_paths: List[str] = None, rpc_module_paths: List[str] = None,
@ -87,6 +88,7 @@ class ActorNursery:
self, self,
name: str, name: str,
fn: typing.Callable, fn: typing.Callable,
*,
bind_addr: Tuple[str, int] = ('127.0.0.1', 0), bind_addr: Tuple[str, int] = ('127.0.0.1', 0),
rpc_module_paths: Optional[List[str]] = None, rpc_module_paths: Optional[List[str]] = None,
statespace: Dict[str, Any] = None, statespace: Dict[str, Any] = None,