sync_only_middleware
Mark a middleware factory as returning a sync middleware. This is the default.
def sync_only_middleware(
func: callable
) - > callable
Mark a middleware factory as returning a sync middleware. This is the default.
Parameters
| Name | Type | Description |
|---|---|---|
| func | callable | The middleware factory function to be marked as sync-only |
Returns
| Type | Description |
|---|---|
callable | The original middleware factory function, modified with attributes indicating it only supports synchronous execution |