Create an actor. Args: args: These arguments are forwarded directly to the actor constructor. kwargs: These arguments are forwarded directly to the actor constructor. Returns: A handle to the newly created actor.
(self, *args, **kwargs)
| 1598 | return self |
| 1599 | |
| 1600 | def remote(self, *args, **kwargs) -> ActorProxy[T]: |
| 1601 | """Create an actor. |
| 1602 | |
| 1603 | Args: |
| 1604 | args: These arguments are forwarded directly to the actor |
| 1605 | constructor. |
| 1606 | kwargs: These arguments are forwarded directly to the actor |
| 1607 | constructor. |
| 1608 | |
| 1609 | Returns: |
| 1610 | A handle to the newly created actor. |
| 1611 | """ |
| 1612 | return self._remote(args=args, kwargs=kwargs, **self._default_options) |
| 1613 | |
| 1614 | def options(self, **actor_options) -> "ActorClass[T]": |
| 1615 | """Configures and overrides the actor instantiation parameters. |