Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOptions ¶
func DefaultOptions() *options
func NewGoAsyncDo ¶ added in v1.0.8
func NewGoAsyncDo(f GoAsyncFunc, args ...any)
func NewGoSyncDo ¶ added in v1.0.8
func NewGoSyncDo(f GoSyncFunc, args ...any) (any, error)
Types ¶
type GoAsyncFunc ¶ added in v1.0.8
type GoAsyncFunc = func(...any)
type GoRunners ¶
type GoRunners interface { // SyncRun 同步执行一个任务 SyncRun(GoSyncFunc, ...any) (any, error) // AsyncRun 异步执行一个任务 AsyncRun(GoAsyncFunc, ...any) error }
func NewGoRunners ¶
func NewGoRunners(ops ...*options) GoRunners
type GoSyncFunc ¶ added in v1.0.8
Click to show internal directories.
Click to hide internal directories.