Compare commits
No commits in common. "eebe3d217961dc60375b49a9b1767f6116c1a55a" and "b9369570ae5a60c739763ca80ea95c68336d76e5" have entirely different histories.
eebe3d2179
...
b9369570ae
@ -25,7 +25,7 @@ func (this *Monitor[T]) Set (value T) {
|
|||||||
// Borrow borrows the value from the Monitor, and returns a function that must
|
// Borrow borrows the value from the Monitor, and returns a function that must
|
||||||
// immediately be deferred, like this:
|
// immediately be deferred, like this:
|
||||||
//
|
//
|
||||||
// value, done := monitor.Borrow()
|
// value, done := Monitor.Borrow()
|
||||||
// defer done()
|
// defer done()
|
||||||
//
|
//
|
||||||
// From the time Borrow is called to the time the done function is called, it is
|
// From the time Borrow is called to the time the done function is called, it is
|
||||||