Clients are classes that provide interfaces for requesting and retrieving data usually from remove server.
More...
Clients are classes that provide interfaces for requesting and retrieving data usually from remove server.
All the clients are asynchronous. In other words, a request suspends the current engine::Task and other coroutines are processed on the task processor. The suspended task resumes execution on the task processor after the data was retrieved.
It is a common practice to return references or smart pointers to clients from a component. In such cases:
- a client lives as long as the component is alive
- and it is safe to invoke member functions of the same client instance concurrently if not stated the opposite.