{"modulePath":"github.com/andrewbytecoder/nmq","version":"v0.0.0-20261028105650-d8b0a59c570e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package safe\n\n## Functions\n\n```go\nfunc Go(goroutine func())\n```\nGo starts a recoverable goroutine.\n\n```go\nfunc GoWithRecover(goroutine func(), customRecover func(err any))\n```\nGoWithRecover starts a recoverable goroutine using given customRecover() function.\n\n```go\nfunc OperationWithRecover(operation backoff.Operation) backoff.Operation\n```\nOperationWithRecover wrap a backoff operation in a Recover.\n\n## Types\n\n```go\ntype Pool struct {\n\t// contains filtered or unexported fields\n}\n```\nPool is a pool of go routines.\n\n```go\nfunc NewPool(parentCtx context.Context) *Pool\n```\nNewPool creates a Pool.\n\n```go\nfunc (p *Pool) GoCtx(goroutine routineCtx)\n```\nGoCtx starts a recoverable goroutine with a context.\n\n```go\nfunc (p *Pool) Stop()\n```\nStop stops all started routines, waiting for their termination.\n\n```go\ntype Safe struct {\n\t// contains filtered or unexported fields\n}\n```\nSafe contains a thread-safe value.\n\n```go\nfunc New(value any) *Safe\n```\nNew create a new Safe instance given a value.\n\n```go\nfunc (s *Safe) Get() any\n```\nGet returns the value.\n\n```go\nfunc (s *Safe) Set(value any)\n```\nSet sets a new value.\n\n","path":"github.com/andrewbytecoder/nmq/pkg/safe","name":"safe","synopsis":"","isRedistributable":true}
