mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
queue
This commit is contained in:
@ -7,7 +7,10 @@ type List[T any] interface {
|
||||
ToSlice() []T
|
||||
}
|
||||
|
||||
|
||||
type Queue interface{
|
||||
|
||||
}
|
||||
type Queue[T any] interface {
|
||||
Put(T)
|
||||
Poll() T
|
||||
Peek() T
|
||||
Size() int
|
||||
IsEmpty() bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user