import "v2ray.com/core/common/task"
Close returns a func() that closes v.
OnSuccess executes g() after f() returns nil.
Run executes a list of tasks in parallel, returns the first error encountered or nil if all tasks pass.
type Periodic struct { // Interval of the task being run Interval time.Duration // Execute is the task function Execute func() error // contains filtered or unexported fields }
Periodic is a task that runs periodically.
Close implements common.Closable.
Start implements common.Runnable.
Package task imports 5 packages (graph) and is imported by 146 packages. Updated 2019-03-29. Refresh now. Tools for package owners.