Undocumented
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | detached |
Schedule a function for remote (detached) execution. |
Method | get |
Retrieve a dependency by its name. |
Method | lfc |
Schedule a function for local execution and await its result. |
Method | lfi |
Schedule a function for local execution. |
Method | promise |
Undocumented |
Method | rfc |
Schedule a function for remote execution and await its result. |
Method | rfi |
Schedule a function for remote execution`. |
Method | sleep |
Undocumented |
Method | typesafe |
Undocumented |
Property | id |
Undocumented |
Property | info |
Undocumented |
Property | logger |
Undocumented |
Property | random |
Undocumented |
Property | time |
Undocumented |
Method | _next |
Undocumented |
Instance Variable | _cid |
Undocumented |
Instance Variable | _counter |
Undocumented |
Instance Variable | _dependencies |
Undocumented |
Instance Variable | _id |
Undocumented |
Instance Variable | _info |
Undocumented |
Instance Variable | _logger |
Undocumented |
Instance Variable | _random |
Undocumented |
Instance Variable | _registry |
Undocumented |
Instance Variable | _time |
Undocumented |
str
, cid: str
, info: Info
, registry: Registry
, dependencies: Dependencies
, logger: Logger
):
¶
Undocumented
Callable[ Concatenate[ Context, P], Generator[ Any, Any, R] | R]
, *args: P.args
, **kwargs: P.kwargs
) -> RFI[ R]
:str
, *args: Any
, **kwargs: Any
) -> RFI
:Schedule a function for remote (detached) execution.
The function is scheduled on the global event loop and potentially executed in a different process, and the returned promise can be awaited for the final result.
- Function must be registered
- Function args and kwargs must be serializable
Retrieve a dependency by its name.
If the dependency identified by key exists, its value is returned; otherwise, the specified default value is returned. A TypeError is raised if key is not a string.
Callable[ Concatenate[ Context, P], Generator[ Any, Any, R] | R]
, *args: P.args
, **kwargs: P.kwargs
) -> LFC[ R]
:
¶
Schedule a function for local execution and await its result.
The function is executed in the current process.
By default, execution is durable; non durable behavior can be configured if needed.
Callable[ Concatenate[ Context, P], Generator[ Any, Any, R] | R]
, *args: P.args
, **kwargs: P.kwargs
) -> LFI[ R]
:
¶
Schedule a function for local execution.
The function is executed in the current process, and the returned promise can be awaited for the final result.
By default, execution is durable; non durable behavior can be configured if needed.
str | None
= None, timeout: float | None
= None, idempotency_key: str | None
= None, data: Any
= None, tags: dict[ str, str] | None
= None) -> RFI
:
¶
Undocumented
Callable[ Concatenate[ Context, P], Generator[ Any, Any, R] | R]
, *args: P.args
, **kwargs: P.kwargs
) -> RFC[ R]
:str
, *args: Any
, **kwargs: Any
) -> RFC
:Schedule a function for remote execution and await its result.
The function is scheduled on the global event loop and potentially executed in a different process.
- Function must be registered
- Function args and kwargs must be serializable
Callable[ Concatenate[ Context, P], Generator[ Any, Any, R] | R]
, *args: P.args
, **kwargs: P.kwargs
) -> RFI[ R]
:str
, *args: Any
, **kwargs: Any
) -> RFI
:Schedule a function for remote execution`.
The function is scheduled on the global event loop and potentially executed in a different process, the returned promise can be awaited for the final result.
- Function must be registered
- Function args and kwargs must be serializable
LFI[ T] | RFI[ T]
) -> Generator[ LFI[ T] | RFI[ T], Promise[ T], Promise[ T]]
:LFC[ T] | RFC[ T] | Promise[ T]
) -> Generator[ LFC[ T] | RFC[ T] | Promise[ T], T, T]
:Undocumented