package
Version:
v1.4.2
Opens a new window with list of versions in this module.
Published: May 12, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CloneChanFn[T, E any](fn func(<-chan T) <-chan E, num int, in <-chan T) <-chan E
cloning stream channel function means that more goroutines will work for it.
and finally all stream will be faned in one channel.
func GenChanFn[T any, E any](logic func(in <-chan T, out chan<- E)) func(<-chan T) <-chan E
to make a stream channel function.
func Multiply[T, E, R any](f func(E) R, g func(T) E) func(T) R
multiply two functions to one, right function first.
func SortChan[T sorter](in <-chan T) <-chan T
Source Files
¶
Click to show internal directories.
Click to hide internal directories.