typing¤
Custom type annotations.
FutureOrResult
¤
Bases: Protocol
The reply to a request.
__call__
¤
Call a method of a Service.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args
|
Any
|
The arguments that the method of the Service requires. |
()
|
sync
|
bool
|
Whether to perform a synchronous request or an asynchronous request. |
True
|
**kwargs
|
Any
|
The keyword arguments that the method of the Service requires. |
{}
|
Returns:
| Type | Description |
|---|---|
Any | Future[Any]
|
Source code in src/msl/network/typing.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |