Commit d278666c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5074da5b
...@@ -52,8 +52,9 @@ const ( ...@@ -52,8 +52,9 @@ const (
// //
// Create one with NewWeakRef and retrieve referenced object with Get. // Create one with NewWeakRef and retrieve referenced object with Get.
// //
// There must be no more than 1 weak references to any object. // There must be no more than 1 weak reference to any object.
// Weak references must not be attached to an object on which runtime.SetFinalizer is also used. // Weak references must not be attached to an object on which runtime.SetFinalizer is also used.
// Weak references must not be copied.
type WeakRef struct { type WeakRef struct {
iface iface
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment