Discover Packages
github.com/pulumi/pulumi-go-provider
middleware
cancel
internal
evict
package
Version:
v0.17.0
Opens a new window with list of versions in this module.
Published: Apr 29, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Handle[T any ] struct {
}
type Pool[T any ] struct {
OnEvict func(T)
}
A data structure which provides amortized O(1) insertion, removal, and draining.
func (c *Pool [T]) Close()
Close the cache, evicting all elements and evicting future elements on insertion.
Insert a new element into the Pool. The new element can be ejected by calling
`evict`. If the element was already drained or if `evict` was already called, then
`evict` will return true. Otherwise it returns false.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.