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
Concurrency
middleware. - Response
Future - The
Future
type used by theConcurrency
middleware.
Type Aliases§
- Concurrency
Layer - A type alias of
ConcurrencyBuilder
conforming to the naming convention oftower_layer
.