Comments (2)
That's by design. It prevents the potential race between Wait and Go. The proper way to use a tomb is to never hand it off for someone to Wait on it unless you do intend to use it.
from tomb.
Appreciate the fast reply. Obviously there was another issue opened with the same subject.
Sorry about create a duplicate.
from tomb.
Related Issues (17)
- Please keep source gofmt'ed HOT 1
- Waiting when no tomb.Go call has been made HOT 6
- Usage Question / panic, tomb.go called after all goroutines terminated
- please make a release HOT 4
- Wait() never unblocks when no goroutine is running HOT 1
- Panics can happen if the first callback finishes very quickly HOT 2
- Wait() hangs forever if no goroutine was run with Go() HOT 7
- Would be nice to have `Running()` and `Terminating()`
- Inactivity ... I would like to volunteer/help-out
- Seemingly impossible panic: tomb.Go called after all goroutines terminated HOT 2
- go test error
- License BSD3
- tomb kills self after the last goroutine completes HOT 1
- gopkg.in/[email protected]: invalid pseudo-version: does not match version-control timestamp (expected 20161208151619) HOT 1
- `Wait()` deadlocks after `Kill()` if `Go()` has never been called HOT 1
- Use sync.WaitGroup instead?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tomb.