If the add operation fails because the element was already in the collection, it releases the permit (because it did not actually use the space it had reserved).
添加操作如果由于该元素已经在连接中了而失败,那么它会释放许可证(因为它不实际使用它所保留的空间)。
LeakyBoundedSet first waits for a permit to be available (indicating that there is space in the collection), then tries to add the element to the collection.
LeakyBoundedSet首先等待一个许可证成为可用的(表示连接中有空间了),然后试图将元素添加到连接中。
Procedures for the issuance and collection of work permit are detailed overleaf.
发放和收集工作许可证的程序,已在背页较为详细地介绍了。
应用推荐