@cryptotaxi247 / kubo / commits / e95962602

comment NodeGetter

Jeromy committed Jan 27, 2015 at 03:29 UTC e959626029d38c2d02f0c9785d0f2b987757d3b2
1 file changed +4
merkledag/merkledag.go
+4
@@ -228,6 +228,10 @@ type nodePromise struct {
228 ctx context.Context
229 }
230
231 +// NodeGetter provides a promise like interface for a dag Node
232 +// the first call to Get will block until the Node is received
233 +// from its internal channels, subsequent calls will return the
234 +// cached node.
235 type NodeGetter interface {
236 Get() (*Node, error)
237 }