function? is there generic for safe access which works both for async / sync
so the mutex_lock wouldn't be send, which means you can't hold the lock between await points otherwise it should be fine, but you should see what the runtime executor you're using is saying
and your runtime most likely provides an async mutex
Обсуждают сегодня