package util

import (
	

	

	
)

type ConnKey struct{}

type moduleKey struct{}
type moduleState struct {
	sysError error
	mmapState
	handleState
}

func ( context.Context) context.Context {
	 := new(moduleState)
	 = experimental.WithMemoryAllocator(, experimental.MemoryAllocatorFunc(alloc.NewMemory))
	 = experimental.WithCloseNotifier(, )
	 = context.WithValue(, moduleKey{}, )
	return 
}

func ( context.Context) error {
	// Test needed to simplify testing.
	,  := .Value(moduleKey{}).(*moduleState)
	if  {
		return .sysError
	}
	return nil
}

func ( context.Context,  error) {
	// Test needed to simplify testing.
	,  := .Value(moduleKey{}).(*moduleState)
	if  {
		.sysError = 
	}
}