refcount

package
v2.9.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package refcount implements a reference-counting client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefCount

type RefCount struct {
	Client capnp.Client
	// contains filtered or unexported fields
}

A RefCount will close its underlying client once all its references are closed.

func New

func New(c capnp.Client) (rc *RefCount, ref capnp.Client)

New creates a reference counter and the first client reference.

func (*RefCount) Ref

func (rc *RefCount) Ref() capnp.Client

Ref makes a new client reference.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL