Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNotifyContextPrematureCancelParent (0.42 sec)

  1. src/os/signal/signal_test.go

    	}
    
    	cancelParent()
    	<-c.Done()
    	if got := c.Err(); got != context.Canceled {
    		t.Errorf("c.Err() = %q, want %q", got, context.Canceled)
    	}
    }
    
    func TestNotifyContextPrematureCancelParent(t *testing.T) {
    	parent, cancelParent := context.WithCancel(context.Background())
    	defer cancelParent()
    
    	cancelParent() // Prematurely cancel context before calling NotifyContext.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
Back to top