Wait returns the Promise for a key. If the Promise is expired, it will be resolved, but this function will return nil
(key interface{})
| 15 | // Wait returns the Promise for a key. |
| 16 | // If the Promise is expired, it will be resolved, but this function will return nil |
| 17 | Wait(key interface{}) Promise |
| 18 | |
| 19 | // WaitOrLock takes the lock, but only if none exists for that key. |
| 20 | // If the Promise is expired, it will successfully replace it and the previous Promise will be resolved. |
no outgoing calls