package
0.1.5
Repository: https://github.com/goexts/generic.git
Documentation: pkg.go.dev

# Functions

Async runs the provided function in a separate goroutine and returns a channel that will receive the result of the function.
AsyncOrErr runs the provided function in a separate goroutine and returns two channels: one that will receive the result of the function, and another that will receive any error that occurs during the function execution.
Try creates a new caller with the given function and runs it in a goroutine.
TryWithContext creates a new caller with the given function and context and runs it in a goroutine.
Wait waits for a value to be available on the provided channel.
WaitOrErr waits for a value to be available on the provided channel or an error to be available on the provided error channel.
WaitTimeoutOrErr waits for a value to be available on the provided channel within the given context.
WaitWithContext waits for a value to be available on the provided channel within the given context.

# Interfaces

Caller is an interface that represents a function call that can be run in a goroutine.
No description provided by the author