The highest tagged major version is
v3.
package
Version:
v2.18.1+incompatible
Opens a new window with list of versions in this module.
Published: May 12, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package refcount implements a reference-counting client.
A Ref is a single reference to a client wrapped by RefCount.
func (r *Ref) Call(cl *capnp.Call) capnp.Answer
Call makes a call on the underlying client.
func (r *Ref) Client() capnp.Client
Client returns the underlying client.
Close decrements the reference count. Close will be called on
finalization (i.e. garbage collection).
type RefCount struct {
Client capnp.Client
}
A RefCount will close its underlying client once all its references are closed.
func New(c capnp.Client) (rc *RefCount, ref1 capnp.Client)
New creates a reference counter and the first client reference.
Ref makes a new client reference.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.