Expand description
Incoming request multiplexing limits and cancellation.
Applies to both Language Servers and Language Clients.
Note that the crate::MainLoop can poll multiple ongoing requests
out-of-box, while this middleware is to provides these additional features:
- Limit concurrent incoming requests to at most
max_concurrency. - Cancellation of incoming requests via client notification
$/cancelRequest.
Structs§
- Concurrency
- The middleware for incoming request multiplexing limits and cancellation.
- Concurrency
Builder - The builder of
Concurrencymiddleware. - Response
Future - The
Futuretype used by theConcurrencymiddleware.
Type Aliases§
- Concurrency
Layer - A type alias of
ConcurrencyBuilderconforming to the naming convention oftower_layer.