MCPcopy Create free account
hub / github.com/dustinxie/lockfree / Push

Method Push

stack.go:28–28  ·  view source on GitHub ↗

add an item to the stack

(interface{})

Source from the content-addressed store, hash-verified

26
27 // add an item to the stack
28 Push(interface{})
29
30 // remove an item from the stack
31 Pop() interface{}

Callers 3

TestNewStackFunction · 0.95
BenchmarkLockfreeStackFunction · 0.95
TestStackFunction · 0.95

Implementers 1

stacklist/stack.go

Calls

no outgoing calls

Tested by 3

TestNewStackFunction · 0.76
BenchmarkLockfreeStackFunction · 0.76
TestStackFunction · 0.76