Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cancelParent (0.19 sec)

  1. src/context/x_test.go

    			ctx: func() Context {
    				ctx, cancelParent := WithCancelCause(Background())
    				ctx, cancelChild := WithCancelCause(ctx)
    				cancelParent(parentCause)
    				cancelChild(childCause)
    				return ctx
    			},
    			err:   Canceled,
    			cause: parentCause,
    		},
    		{
    			name: "WithCancelCause: parent cause after child",
    			ctx: func() Context {
    				ctx, cancelParent := WithCancelCause(Background())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/os/signal/signal_test.go

    func TestNotifyContextCancelParent(t *testing.T) {
    	parent, cancelParent := context.WithCancel(context.Background())
    	defer cancelParent()
    	c, stop := NotifyContext(parent, syscall.SIGINT)
    	defer stop()
    
    	if want, got := "signal.NotifyContext(context.Background.WithCancel, [interrupt])", fmt.Sprint(c); want != got {
    		t.Errorf("c.String() = %q, want %q", got, want)
    	}
    
    	cancelParent()
    	<-c.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
  3. okhttp-android/src/main/baseline-prof.txt

    PLkotlinx/coroutines/JobSupport;->cancel(Ljava/util/concurrent/CancellationException;)V
    PLkotlinx/coroutines/JobSupport;->cancelImpl$kotlinx_coroutines_core(Ljava/lang/Object;)Z
    PLkotlinx/coroutines/JobSupport;->cancelParent(Ljava/lang/Throwable;)Z
    PLkotlinx/coroutines/JobSupport;->cancellationExceptionMessage()Ljava/lang/String;
    PLkotlinx/coroutines/JobSupport;->createCauseException(Ljava/lang/Object;)Ljava/lang/Throwable;
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top