Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOnExitFunc ¶
func AddOnExitFunc(onExit ExitFunc)
func SetUpProcessInterrupt ¶
func SetUpProcessInterrupt()
Sets up receiver for OS interrupt signal.
To run code when that happens, add functions via the AddOnExitFunc(func()) process
func WrapChannel ¶
func WrapChannel[T any, U any](input <-chan T, mapper MapperFunc[T, U]) <-chan U
WrapChannel wraps an input channel into another channel using a mapper function
Types ¶
type MapperFunc ¶
Click to show internal directories.
Click to hide internal directories.