udwSingleFlight

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

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

func (*Group) Do

func (g *Group) Do(key string, fn func() (interface{}, error)) (interface{}, error)

func (*Group) IsRunning

func (g *Group) IsRunning(key string) bool

type One

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

func (*One) Do

func (one *One) Do(fn func() interface{}) interface{}

func (*One) DoNoReturn

func (one *One) DoNoReturn(fn func())

func (*One) IsRunning

func (one *One) IsRunning() bool

Jump to

Keyboard shortcuts

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