Fix race conditions and improve lifecycle safety #150
@@ -181,5 +181,7 @@ func isClosedError(err error) bool {
|
||||
}
|
||||
|
||||
func (l *lifecycle) StartedAt() time.Time {
|
||||
l.mu.Lock()
|
||||
defer l.mu.Unlock()
|
||||
return l.startedAt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user