A locking API for expiring values while a single thread generates a new value
