Why can't I store this `sending` parameter in my mutex?

Exactly, the same issue I ran into while trying to replace my custom lock implementation with Mutex. While doing so, I also discovered a race condition involving closures that return a non-Sendable value and are not marked as sending.

1 Like