Loading...
public final T useService<T extends Any>(Durationtimeout,-SuspendFunction1<<Error-class:-unknown-class>,-T>block)
Generic method to use the financial service with automatic binding, timeout, and connection reuse.
This method handles all the complexity of service binding, allowing the caller to focus on the business logic of interacting with the service. The service connection is reused across multiple calls for better performance.
The result of the block execution, or null if timeout occurred or binding failed
Orchestrator API
| timeout | Maximum time to wait for response |
| block | The suspend function to execute with the service instance |