Context - #57140 (comment)
It may be possible to move the TCS representing the completion of the lsp method into the request queue item itself instead of using callbacks to call the handler method / handle failures. This would make the state captured much clearer.
However we would need to implement a IQueueItem interface (or similar) that is not generic to create the queue, and create generic implementations to handle the generic TCS
Context - #57140 (comment)
It may be possible to move the TCS representing the completion of the lsp method into the request queue item itself instead of using callbacks to call the handler method / handle failures. This would make the state captured much clearer.
However we would need to implement a IQueueItem interface (or similar) that is not generic to create the queue, and create generic implementations to handle the generic TCS