Reset make the once object to be initialized once again.
()
| 43 | |
| 44 | // Reset make the once object to be initialized once again. |
| 45 | func (o *Once) Reset() { |
| 46 | // directly to slow-path |
| 47 | o.m.Lock() |
| 48 | defer o.m.Unlock() |
| 49 | atomic.StoreUint32(&o.done, 0) |
| 50 | } |