Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyStack = errors.New("empty Stack")
Functions ¶
This section is empty.
Types ¶
type AsyncStack ¶
type AsyncStack[T any] struct { // contains filtered or unexported fields }
func NewAsyncStack ¶
func NewAsyncStack[T any]() *AsyncStack[T]
func (*AsyncStack[T]) Empty ¶
func (st *AsyncStack[T]) Empty() bool
func (*AsyncStack[T]) Pop ¶
func (st *AsyncStack[T]) Pop() (T, error)
func (*AsyncStack[T]) Push ¶
func (st *AsyncStack[T]) Push(value T)
func (*AsyncStack[T]) Top ¶
func (st *AsyncStack[T]) Top() (T, error)
Click to show internal directories.
Click to hide internal directories.