Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newAfterFuncContext (0.12 sec)

  1. src/context/afterfunc_test.go

    // defined in context.go, that supports registering AfterFuncs.
    type afterFuncContext struct {
    	mu         sync.Mutex
    	afterFuncs map[*byte]func()
    	done       chan struct{}
    	err        error
    }
    
    func newAfterFuncContext() context.Context {
    	return &afterFuncContext{}
    }
    
    func (c *afterFuncContext) Deadline() (time.Time, bool) {
    	return time.Time{}, false
    }
    
    func (c *afterFuncContext) Done() <-chan struct{} {
    	c.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:58:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top