// Init initialises a lock with the provided client and purger, and starts the purger loop
Init initialises a lock with the provided client and purger, and starts the purger loop
// Init initialises a lock with the provided client and purger and starts the purger loop
func (l *Lock) Init(ctx context.Context, lockClient Client, lockPurger Purger) {
	l.Client = lockClient
	l.Purger = lockPurger
	l.CloserChannel = make(chan struct{})
	l.WaitGroup = &sync.WaitGroup{}
	l.startPurgerLoop(ctx)
}
func ( l * Lock ) Init ( ctx context . Context , lockClient Client , lockPurger Purger ) { l . Client = lockClient l . Purger = lockPurger l . CloserChannel = make ( chan struct { } ) l . WaitGroup = & sync . WaitGroup { } l . startPurgerLoop ( ctx ) }
Init initialises a lock with the provided client and purger, and starts the purger loop
Init initialises a lock with the provided client and purger and starts the purger loop