Documentation ¶
Index ¶
- func GoTry(f func(), catch func(interface{}), finally func())
- func SetUtilLog(f func(err interface{}))
- func TimeoutGo(f func(), ticker time.Timer, timeoutfunc func())
- func Try(f func(), catch func(interface{}), finally func())
- type ThreadGo
- func (this *ThreadGo) CloseWait()
- func (this *ThreadGo) Go(f func(ctx context.Context))
- func (this *ThreadGo) GoTry(f func(ctx context.Context), catch func(interface{}), finally func())
- func (this *ThreadGo) SubGo(f func(ctx context.Context)) context.CancelFunc
- func (this *ThreadGo) Try(f func(ctx context.Context), catch func(interface{}), finally func())
- type ThreadRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUtilLog ¶
func SetUtilLog(f func(err interface{}))
Types ¶
type ThreadGo ¶
ThreadGo 子协程管理计数,可以等子协程都完成 用它来管理所有开的协程,需要等这些线程都跑完
func NewThreadGo ¶
func NewThreadGo() *ThreadGo
func NewThreadGoByGo ¶
func NewThreadGoBySub ¶
Click to show internal directories.
Click to hide internal directories.