Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for async (0.16 sec)

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

          assertThat(expected.message).isEqualTo("Already Executed")
        }
        assertThat(server.takeRequest().headers["User-Agent"]).isEqualTo("SyncApiTest")
      }
    
      @Test
      fun illegalToExecuteTwice_Async() {
        server.enqueue(
          MockResponse(
            headers = headersOf("Content-Type", "text/plain"),
            body = "abc",
          ),
        )
        val request =
          Request.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  2. fastapi/routing.py

                errors: List[Any] = []
                async with AsyncExitStack() as async_exit_stack:
                    solved_result = await solve_dependencies(
                        request=request,
                        dependant=dependant,
                        body=body,
                        dependency_overrides_provider=dependency_overrides_provider,
                        async_exit_stack=async_exit_stack,
                    )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  3. fastapi/applications.py

                    ```python
                    from fastapi import FastAPI
    
                    app = FastAPI(redirect_slashes=True)  # the default
    
                    @app.get("/items/")
                    async def read_items():
                        return [{"item_id": "Foo"}]
                    ```
    
                    With this app, if a client goes to `/items` (without a trailing slash),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  4. cmd/metrics-v2.go

    					Subsystem: iamSubsystem,
    					Name:      "since_last_sync_millis",
    					Help:      "Time (in milliseconds) since last successful IAM data sync.",
    					Type:      gaugeMetric,
    				},
    				Value: float64(sinceLastSyncMillis),
    			},
    			{
    				Description: MetricDescription{
    					Namespace: nodeMetricNamespace,
    					Subsystem: iamSubsystem,
    					Name:      "sync_successes",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    	)
    	if peer.DeploymentID != "" {
    		pi = c.state.Peers[peer.DeploymentID]
    		prevPeerInfo = pi
    		if !peer.SyncState.Empty() { // update replication to peer to be sync/async
    			pi.SyncState = peer.SyncState
    			successMsg = fmt.Sprintf("%s\n- sync state %s for peer %s", successMsg, peer.SyncState, peer.Name)
    		}
    		if peer.Endpoint != "" { // `admin replicate update` requested an endpoint change
    			pi.Endpoint = peer.Endpoint
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  6. cmd/bucket-replication.go

    package cmd
    
    import (
    	"context"
    	"encoding/binary"
    	"errors"
    	"fmt"
    	"io"
    	"math/rand"
    	"net/http"
    	"net/url"
    	"path"
    	"reflect"
    	"strings"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio-go/v7"
    	"github.com/minio/minio-go/v7/pkg/encrypt"
    	"github.com/minio/minio-go/v7/pkg/tags"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  7. go.sum

    golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
    golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
    golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
    golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 21:52:58 GMT 2024
    - 109K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	z, ok := objectAPI.(*erasureServerPools)
    	if !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    
    	var args dsync.LockArgs
    	var lockers []dsync.NetLocker
    	for _, path := range strings.Split(vars["paths"], ",") {
    		if path == "" {
    			continue
    		}
    		args.Resources = append(args.Resources, path)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  9. cmd/object-handlers_test.go

    ) {
    	// used for storing the uploadID's parsed on concurrent HTTP requests for NewMultipart upload on the same object.
    	testUploads := struct {
    		sync.Mutex
    		uploads []string
    	}{}
    
    	objectName := "test-object-new-multipart-parallel"
    	var wg sync.WaitGroup
    	for i := 0; i < 10; i++ {
    		wg.Add(1)
    		// Initiate NewMultipart upload on the same object 10 times concurrrently.
    		go func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.30.md

    - go.uber.org/goleak: v1.2.1 → v1.3.0
    - go.uber.org/zap: v1.19.0 → v1.26.0
    - golang.org/x/crypto: v0.14.0 → v0.21.0
    - golang.org/x/mod: v0.12.0 → v0.15.0
    - golang.org/x/net: v0.17.0 → v0.23.0
    - golang.org/x/sync: v0.3.0 → v0.6.0
    - golang.org/x/sys: v0.13.0 → v0.18.0
    - golang.org/x/term: v0.13.0 → v0.18.0
    - golang.org/x/text: v0.13.0 → v0.14.0
    - golang.org/x/tools: v0.12.0 → v0.18.0
    - google.golang.org/protobuf: v1.31.0 → v1.33.0
    Plain Text
    - Registered: Fri May 03 09:05:14 GMT 2024
    - Last Modified: Wed Apr 17 17:56:15 GMT 2024
    - 227.9K bytes
    - Viewed (0)
Back to top