Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	ErrMergedContextCanceled = errors.New("merged context canceled")
)
    Functions ¶
func MergeContexts ¶
func MergeContexts(ctxPrimary context.Context, ctxSecondary context.Context) (context.Context, context.CancelFunc)
MergeContexts creates a new mergedContext based on two contexts.
func ReturnErrIfChannelClosed ¶
ReturnErrIfChannelClosed returns the given error if the provided channel was closed.
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.