Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for bgwait (0.12 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

        callback.await(server.url("/a")).assertBody("abc")
        client.newCall(Request.Builder().url(server.url("/b")).build()).enqueue(callback)
        callback.await(server.url("/b")).assertBody("def")
        client.newCall(Request.Builder().url(server.url("/c")).build()).enqueue(callback)
        callback.await(server.url("/c")).assertBody("ghi")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

                    functionBlocking.await();
                    return immediateFuture(null);
                  }
                });
    
        ExecutorService executor = Executors.newSingleThreadExecutor();
        try {
          ListenableFuture<?> output =
              Futures.transformAsync(immediateFuture(null), function, executor);
          functionCalled.await();
          assertThat(output.toString()).contains(function.toString());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

                    functionBlocking.await();
                    return immediateFuture(null);
                  }
                });
    
        ExecutorService executor = Executors.newSingleThreadExecutor();
        try {
          ListenableFuture<?> output =
              Futures.transformAsync(immediateFuture(null), function, executor);
          functionCalled.await();
          assertThat(output.toString()).contains(function.toString());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  4. pkg/scheduler/schedule_one_test.go

    			})
    			if err != nil {
    				t.Fatal(err)
    			}
    			s.ScheduleOne(ctx)
    			// Wait for pod to succeed or fail scheduling
    			select {
    			case <-eventChan:
    			case <-time.After(wait.ForeverTestTimeout):
    				t.Fatalf("scheduling timeout after %v", wait.ForeverTestTimeout)
    			}
    			stopFunc()
    			// Wait for scheduling to return an error or succeed binding.
    			var (
    				gotErr  error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  5. fastapi/routing.py

            router = APIRouter()
    
            @router.websocket("/ws")
            async def websocket_endpoint(websocket: WebSocket):
                await websocket.accept()
                while True:
                    data = await websocket.receive_text()
                    await websocket.send_text(f"Message text was: {data}")
    
            app.include_router(router)
            ```
            """
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/runtime/framework_test.go

    		},
    		{
    			name: "WaitPermitPlugin",
    			plugins: []*TestPlugin{
    				{
    					name: "TestPlugin",
    					inj:  injectedResult{PermitStatus: int(framework.Wait)},
    				},
    			},
    			want: framework.NewStatus(framework.Wait, `one or more plugins asked to wait and no plugin rejected pod ""`),
    		},
    		{
    			name: "SuccessSuccessPermitPlugin",
    			plugins: []*TestPlugin{
    				{
    					name: "TestPlugin",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  7. src/net/http/serve_test.go

    	if err := cmd.Start(); err != nil {
    		b.Fatalf("subprocess failed to start: %v", err)
    	}
    
    	done := make(chan error, 1)
    	go func() {
    		done <- cmd.Wait()
    		close(done)
    	}()
    	defer func() {
    		cancel()
    		<-done
    	}()
    
    	// Wait for the server in the child process to respond and tell us
    	// its listening address, once it's started listening:
    	bs := bufio.NewScanner(stdout)
    	if !bs.Scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  8. fastapi/applications.py

            app = FastAPI()
    
            @app.websocket("/ws")
            async def websocket_endpoint(websocket: WebSocket):
                await websocket.accept()
                while True:
                    data = await websocket.receive_text()
                    await websocket.send_text(f"Message text was: {data}")
            ```
            """
    
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  9. src/net/http/server.go

    // program doesn't exit and waits instead for Shutdown to return.
    //
    // Shutdown does not attempt to close nor wait for hijacked
    // connections such as WebSockets. The caller of Shutdown should
    // separately notify such long-lived connections of shutdown and wait
    // for them to close, if desired. See [Server.RegisterOnShutdown] for a way to
    // register shutdown notification functions.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/rsc.io/markdown/emoji.go

    	"koko":                                 "\U0001f201",
    	"kosovo":                               "\U0001f1fd\U0001f1f0",
    	"kr":                                   "\U0001f1f0\U0001f1f7",
    	"kuwait":                               "\U0001f1f0\U0001f1fc",
    	"kyrgyzstan":                           "\U0001f1f0\U0001f1ec",
    	"lab_coat":                             "\U0001f97c",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 107.7K bytes
    - Viewed (0)
Back to top