Initializes a new instance of the MiddlewareSet class.
The middleware handlers or middleware objects to use.
Handles the turn of the middleware.
The turn context.
The next function to call.
A promise representing the asynchronous operation.
Runs the middleware chain.
The turn context.
The next function to call.
A promise representing the asynchronous operation.
Adds middleware to the set.
The middleware handlers or middleware objects to add.
The current MiddlewareSet instance.
Represents a set of middleware.