Documentation ¶
Index ¶
- func BlockSelect(stop chan int)
- func If[T any](condition bool, match, notMatch T) T
- func IfFunc[T any](condition bool, matchFunc func() T, notMatchFunc func() T) T
- func IfFuncPair[T1 any, T2 any](condition bool, matchFunc func() (T1, T2), notMatchFunc func() (T1, T2)) (T1, T2)
- func Loop(always bool, do func())
- func LoopReturn[T any](always bool, do func() T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockSelect ¶ added in v1.2.0
func BlockSelect(stop chan int)
func IfFuncPair ¶
func LoopReturn ¶ added in v1.2.0
func LoopReturn[T any](always bool, do func() T) T { if always { for { do() } } else { return do() } }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.