News for hackers. Stuff that matters.
Re:Notes on structured concurrency, or: Go statement conside... by eridius on Thursday April 26, 2018 @11:50AM (#16932960)
I think you misunderstand. I'm talking about writing something like `ScopedThreadpool<'static>`, which means any external data referenced by the threadpool must have a static lifetime (or rather, it means the ScopedThreadpool cannot reference anything on the stack, because that would prevent you from e.g. returning it to your caller or passing it to another thread). The ScopedThreadpool itself can be created and destroyed whenever.

There are no comments on this comment yet.