Async version of the folly::transition_lock TODO: add more transition policies beyond just from upgrade to exclusive
Declared in <folly/coro/SharedLock.h>
template<typename Mutex>
folly::coro::Task<std::unique_lock<Mutex>>
co_transition_lock(UpgradeLock<Mutex>& lock);
A Task yielding a std::unique_lock holding the mutex.
| Name | Description |
|---|---|
| lock | The upgrade lock to transition to an exclusive lock. |