File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Fast resizable golang semaphore based on CAS
1717### Usage
1818Initiate
1919``` go
20- import " github.com/marusama/semaphore"
20+ import " github.com/marusama/semaphore/v2 "
2121...
2222sem := semaphore.New (5 ) // new semaphore with limit = 5
2323```
Original file line number Diff line number Diff line change 55// Package semaphore provides an implementation of counting semaphore primitive with possibility to change limit
66// after creation. This implementation is based on Compare-and-Swap primitive that in general case works faster
77// than other golang channel-based semaphore implementations.
8- package semaphore // import "github.com/marusama/semaphore"
8+ package semaphore // import "github.com/marusama/semaphore/v2 "
99
1010import (
1111 "context"
You can’t perform that action at this time.
0 commit comments