utils

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 4 Imported by: 0

README

utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(that string, value, expected interface{}, t *testing.T)

Assert helps to write better test code.

func Generate

func Generate[T any](values ...T) <-chan T

Generate sends each value to the out channel.

func Main

func Main(main func())

Main ensures guarded calls to the main thread.

func Merge

func Merge[T any](in ...<-chan T) <-chan T

Merge sends each value from a list of input channels to the out channel.

func Process

func Process[T any](in <-chan T, fn func(in T) T) <-chan T

Process works on each value from an input channel and sends the result to an output channel.

func Run

func Run(fn func())

Run handles calls to "main-thread-sensitive" libraries by using the main OS thread only.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL