(w io.Writer)
| 111 | } |
| 112 | |
| 113 | func safeWriterFrom(w io.Writer) *safeWriter { |
| 114 | return &safeWriter{ |
| 115 | Writer: w, |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // activeSet is a goroutine-safe store of active processes. It is similar |
| 120 | // in idea to a WaitGroup, but does not block when we check for zero, and it |