Discover Packages
github.com/mirovskyi/traefik
safe
package
Version:
v1.3.0-rc3
Opens a new window with list of versions in this module.
Published: May 24, 2017
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Go(goroutine func())
Go starts a recoverable goroutine
func GoWithRecover(goroutine func(), customRecover func(err interface{}))
GoWithRecover starts a recoverable goroutine using given customRecover() function
OperationWithRecover wrap a backoff operation in a Recover
Pool is a pool of go routines
func (p *Pool ) AddGoCtx(goroutine routineCtx)
AddGoCtx adds a recoverable goroutine with a context without starting it
Cleanup releases resources used by the pool, and should be called when the pool will no longer be used
func (p *Pool ) Go(goroutine func(stop chan bool ))
Go starts a recoverable goroutine, and can be stopped with stop chan
func (p *Pool ) GoCtx(goroutine routineCtx)
GoCtx starts a recoverable goroutine with a context
Start starts all stopped routines
Stop stops all started routines, waiting for their termination
Safe contains a thread-safe value
func New(value interface{}) *Safe
New create a new Safe instance given a value
func (s *Safe ) Get() interface{}
Get returns the value
func (s *Safe ) Set(value interface{})
Set sets a new value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.