ack

package
Version: v0.0.7-beta Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Waiter

type Waiter struct {
	// contains filtered or unexported fields
}

Waiter for registering acks to be fulfilled.

func (*Waiter) Delete

func (w *Waiter) Delete(id int)

Delete message.

func (*Waiter) Load

func (w *Waiter) Load(id int) (chan string, bool)

Load a stored ack, or nil if no value is present. The ok result indicates whether a value was found.

func (*Waiter) Next

func (w *Waiter) Next() int

Next gets a new ID for an ack message.

func (*Waiter) Set

func (w *Waiter) Set(id int, msg chan string)

Set message.

func (*Waiter) Size

func (w *Waiter) Size() int

Size of the map.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL