Documentation
¶
Index ¶
- func Async(fn interface{}, args ...interface{}) xprocess_abc.FutureValue
- func Await(val xprocess_abc.FutureValue, fn interface{}) xprocess_abc.FutureValue
- func Break()
- func CostWith(fn func()) time.Duration
- func Count(n int) <-chan int
- func Go(fn func(ctx context.Context)) context.CancelFunc
- func GoDelay(dur time.Duration, fn func()) error
- func GoLoop(fn func(ctx context.Context)) context.CancelFunc
- func MemStatsPrint()
- func NewEvent() *xprocess_event.Event
- func NewGroup(c ...uint16) *xprocess_group.Group
- func Promise(fn func(g xprocess_abc.Future)) xprocess_abc.IPromise
- func Test(fn interface{}) *xprocess_test.Test
- func Tick(args ...interface{}) <-chan time.Time
- func Timeout(dur time.Duration, fn func(ctx context.Context)) error
- func Try(fn func()) error
- type FutureValue
- type IPromise
- type Value
- type WaitGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Async ¶ added in v0.1.1
func Async(fn interface{}, args ...interface{}) xprocess_abc.FutureValue
func Await ¶ added in v0.1.1
func Await(val xprocess_abc.FutureValue, fn interface{}) xprocess_abc.FutureValue
func GoLoop ¶
func GoLoop(fn func(ctx context.Context)) context.CancelFunc
GoLoop 启动一个goroutine loop 是为了替换 `go func() {for{ }}()` 这类的代码
func MemStatsPrint ¶ added in v0.1.3
func MemStatsPrint()
func NewEvent ¶ added in v0.1.2
func NewEvent() *xprocess_event.Event
func NewGroup ¶
func NewGroup(c ...uint16) *xprocess_group.Group
func Promise ¶ added in v0.1.1
func Promise(fn func(g xprocess_abc.Future)) xprocess_abc.IPromise
func Test ¶ added in v0.1.3
func Test(fn interface{}) *xprocess_test.Test
Types ¶
type FutureValue ¶ added in v0.1.1
type FutureValue = xprocess_abc.FutureValue
type IPromise ¶ added in v0.1.1
type IPromise = xprocess_abc.IPromise
type Value ¶ added in v0.1.4
type Value = xprocess_abc.Value
type WaitGroup ¶ added in v0.1.1
type WaitGroup = xprocess_waitgroup.WaitGroup
func NewWaitGroup ¶ added in v0.1.2
Directories
¶
Path | Synopsis |
---|---|
Package gorilla/schema fills a struct with form values.
|
Package gorilla/schema fills a struct with form values. |
Click to show internal directories.
Click to hide internal directories.