package
Version:
v1.0.0-beta.712
Opens a new window with list of versions in this module.
Published: May 18, 2016
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
Pool creates a pool of go routines
func (p *Pool) Go(goroutine func(stop chan bool))
Go starts a recoverable goroutine, and can be stopped with stop chan
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.