Documentation ¶
Index ¶
- func Async(task *AsyncTask, runnable Runnable, cleanup ...Runnable) (Runnable, Runnable)
- func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool
- type AsyncTask
- type Context
- func (c Context) Deadline() (deadline time.Time, ok bool)
- func (c Context) Done() <-chan struct{}
- func (c Context) Err() error
- func (c Context) Get(args ...interface{}) bool
- func (c Context) MustGet(args ...interface{})
- func (c Context) Name() string
- func (c Context) Set(varName string, value interface{})
- func (c Context) Value(key interface{}) interface{}
- func (c Context) WithCancel() (Context, context.CancelFunc)
- func (c Context) WithTimeout(timeout time.Duration) (Context, context.CancelFunc)
- type Flow
- type Resetable
- type Runnable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsyncTask ¶
type AsyncTask struct { Context // contains filtered or unexported fields }
func (*AsyncTask) CancelAndWait ¶
func (t *AsyncTask) CancelAndWait()
type Context ¶
func (Context) WithCancel ¶
func (c Context) WithCancel() (Context, context.CancelFunc)
func (Context) WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.