limiter: github.com/tidwall/limiter Index | Files

package limiter

import "github.com/tidwall/limiter"

Index

Package Files

limiter.go

type Limiter Uses

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

Limiter is for limiting the number of concurrent operations. This

func New Uses

func New(limit int) *Limiter

New returns a new Limiter. The limit param is the maximum number of concurrent operations.

func (*Limiter) Begin Uses

func (l *Limiter) Begin()

Begin an operation.

func (*Limiter) End Uses

func (l *Limiter) End()

End the operation.

Updated 2018-12-25. Refresh now. Tools for package owners.