bgfunc

package
v0.0.0-...-44b843d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller struct {
	*F
	// contains filtered or unexported fields
}

func (*Caller) Call

func (c *Caller) Call(ctx context.Context, f func() (interface{}, error)) (interface{}, error)

func (*Caller) Cancel

func (c *Caller) Cancel() error

type F

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

func New

func New(ctx context.Context, fn func(context.Context, func()) error) (*F, error)

func (*F) NewCaller

func (f *F) NewCaller() *Caller

Jump to

Keyboard shortcuts

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