Method Thread.Mutex()->future_lock()
- Method
future_lock
Concurrent.Future
future_lock()- Description
This function is similar to lock(), but will return a
Concurrent.Future(<Thread.MutexKey>)
that will complete successfully when the Mutex is locked.- Note
Avoid having multiple future_lock's for different Mutexes pending concurrently in the same conceptual thread as this will likely cause dead-locks.