response

suspend fun response(reqId: Long, res: R)

Handles sending a response to a specific request and manages potential timeouts or errors.

Parameters

reqId

The unique identifier for the request to which the response corresponds.

res

The response object of type R to be sent to the waiting clients.