stream

package
v0.0.0-...-a1f0097 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 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 CB

type CB func(interface{}) (interface{}, error)

定回调函数指针的类型

type Stream

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

任务节点结构定义

func NewStream

func NewStream() *Stream

* 创建新的流 *

func (*Stream) Go

func (this *Stream) Go(arg interface{}) (interface{}, error)

* 流结束 arg为流初始参数,初始参数放在End方法中是考虑到初始参数不需在任务链中传递 *

func (*Stream) Next

func (this *Stream) Next(cb CB) *Stream

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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