Documentation
¶
Overview ¶
Package heapadapter provides adapters from container/heap to reaper.Heap.
The adapter does not introduce additional semantics or synchronization policies. Locking is explicit and delegated to the caller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter[T any] struct { // contains filtered or unexported fields }
Adapter wraps a container/heap.Interface and exposes it as a reaper.Heap[T].
The underlying heap.Interface must store values of type T, violation of which is a programmer error and will cause a panic.
func New ¶
New constructs a new Adapter.
The provided heap.Interface is heap-initialized during construction. Locking behavior is fully controlled by the supplied sync.Locker.
Click to show internal directories.
Click to hide internal directories.