groupwork

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package groupwork

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoAndWaitErr

func GoAndWaitErr(handlers ...func() error) (err error)

func GoAndWaitOk

func GoAndWaitOk(handlers ...func() (interface{}, error)) (result interface{}, err error)

Types

type Group

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

func WithContext

func WithContext(ctx context.Context, poolSize int) (*Group, context.Context)

func (*Group) OnceErr

func (g *Group) OnceErr(f func() error)

func (*Group) OnceOk

func (g *Group) OnceOk(f func() (interface{}, error))

func (*Group) WaitErr

func (g *Group) WaitErr() error

func (*Group) WaitOk

func (g *Group) WaitOk() interface{}

Jump to

Keyboard shortcuts

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