wpond

package
v0.0.0-...-9bd1c32 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerPond

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

WorkerPond Worker wrapper for Pond API

func (*WorkerPond) Callback

func (w *WorkerPond) Callback(cb func(interface{}))

Callback set function to process data

func (*WorkerPond) CallbackOnError

func (w *WorkerPond) CallbackOnError(cb func(interface{}))

CallbackOnError set function to process error data

func (*WorkerPond) Init

func (w *WorkerPond) Init(worker, bufferedTask int, options ...pond.Option)

Init function to init pond API

func (*WorkerPond) Submit

func (w *WorkerPond) Submit(params ...interface{})

Submit function to submit parameter

Jump to

Keyboard shortcuts

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