onecontext: Index | Files

package onecontext

import ""

Package onecontext provides a mechanism to merge multiple existing contexts.


Package Files


func Merge Uses

func Merge(ctx context.Context, ctxs ...context.Context) (context.Context, context.CancelFunc)

Merge allows to merge multiple contexts. It returns the merged context and a CancelFunc to cancel it.

type Canceled Uses

type Canceled struct {

Canceled is the error returned when the CancelFunc returned by Merge is called

func (*Canceled) Error Uses

func (c *Canceled) Error() string

Package onecontext imports 3 packages (graph). Updated 2019-08-05. Refresh now. Tools for package owners.