You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix server handler Sendability warnings
### Motivation
Fixes a warning emitted for each operation method in generated server code, which looked like:
```
Converting non-sendable function value to '@sendable (APIHandler) -> ((Operations.listPets.Input) async throws -> Operations.listPets.Output)' may introduce data races
```
### Modifications
Instead of passing the function itself, we now invoke it in a closure.
### Result
The warning has gone away.
### Test Plan
Adapted integration tests.
Reviewed by: simonjbeaumont
Builds:
✔︎ pull request validation (5.8) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (docc test) - Build finished.
✔︎ pull request validation (integration test) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
#156
0 commit comments