File: queue.go

package info (click to toggle)
golang-github-sagikazarmark-locafero 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 184 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 187 bytes parent folder | download
1
2
3
4
5
6
7
8
// Package queue provides a generic queue implementation.
package queue

// Queue represents a generic queue.
type Queue[T any] interface {
	Add(func() (T, error))
	Wait() ([]T, error)
}