Skip to content

gregwebs/go-concurrent

Repository files navigation

go-concurrent

Go library to run code concurrently

For full documentation see the GoDoc.

Running multiple Go routines concurrency

  • GoN - run N go routines concurrently
  • GoEach - run a go routine for each array element
  • Group - Similar to x/sync/errgroup but catches panics and returns all errors

It is possible to instrument how the go routines are launched or launch them in serial for debugging. See:

  • GoSerial - running in serial for debugging
  • GoRoutine - create your own go routine launcher
  • GoRoutine.GoN(...)
  • GoEachRoutine(...)(GoRoutine)
  • Group.SetGoRoutine(GoRoutine)

General concurrency helpers exposed

  • UnboundedChan
  • ChannelMerge
  • TrySend
  • TryRecv

About

Go library to run code concurrently

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages