Documentation ¶
Index ¶
- func GenContextWithTimeout(t time.Duration) (context.Context, context.CancelFunc)
- func GenDefaultContext() (context.Context, context.CancelFunc)
- func GenShutdownContext() (context.Context, context.CancelFunc)
- func KillContextAfterTimeout()
- func KillContextsAfter(t time.Duration)
- func MergeContext(c1, c2 context.Context) (context.Context, context.CancelFunc)
- func New(opt Option)
- func RootContext() context.Context
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenContextWithTimeout ¶
func GenDefaultContext ¶
func GenDefaultContext() (context.Context, context.CancelFunc)
func GenShutdownContext ¶
func GenShutdownContext() (context.Context, context.CancelFunc)
func KillContextAfterTimeout ¶
func KillContextAfterTimeout()
func KillContextsAfter ¶
func MergeContext ¶
MergeContext
func RootContext ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.