{"modulePath":"github.com/sunvim/utils","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package queue\n\n## Types\n\n```go\ntype Queue struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\nQueue queue\n\n```go\nfunc New() *Queue\n```\nNew\n\n```go\nfunc (q *Queue) Close()\n```\nClose Queue After close, Pop will return nil without block, and TryPop will return v=nil, ok=True\n\n```go\nfunc (q *Queue) IsClose() bool\n```\nIsClose check is closed\n\n```go\nfunc (q *Queue) Len() int\n```\nLen\n\n```go\nfunc (q *Queue) Pop() (v interface{})\n```\nPop\n\n```go\nfunc (q *Queue) Push(v interface{})\n```\nPush\n\n```go\nfunc (q *Queue) TryPop() (v interface{}, ok bool)\n```\nTryPop\n\n```go\nfunc (q *Queue) TryPopTimeout(tm time.Duration) (v interface{}, ok bool)\n```\nTryPopTimeout\n\n```go\nfunc (q *Queue) Wait()\n```\nWait\n\n","path":"github.com/sunvim/utils/queue","name":"queue","synopsis":"","isRedistributable":true}
