Documentation
¶
Index ¶
- func PoolWrapper[T, In, Out any](generator Generator[T], fn func(T, In) Out) func(In) Out
- func PoolWrapperErr[T, In any](generator Generator[T], fn func(T, In) error) func(In) error
- func PoolWrapperWithErr[T, In, Out any](generator Generator[T], fn func(T, In) (Out, error)) func(In) (Out, error)
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PoolWrapper ¶
PoolWrapper is a generic wrapper over some function that requires a resource pool. Pooling is encapsulated in this function.
func PoolWrapperErr ¶
PoolWrapperErr is a generic wrapper over some function that requires a resource pool, the function is expected to return error only.
Types ¶
Click to show internal directories.
Click to hide internal directories.