Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,762 for promises (0.32 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/pledge_openbsd.go

    //
    // This changes both the promises and execpromises; use PledgePromises or
    // PledgeExecpromises to only change the promises or execpromises
    // respectively.
    //
    // For more information see pledge(2).
    func Pledge(promises, execpromises string) error {
    	if err := pledgeAvailable(); err != nil {
    		return err
    	}
    
    	pptr, err := BytePtrFromString(promises)
    	if err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.td

      let summary = "Allocate futures and corresponding promises";
    
      let description = [{
        Allocate futures and corresponding promises.
    
        $num: The number of futures to be allocated.
    
        $promises: There are $num promises, and promises[i] shares the state with futures[i].
        $futures: There are $num futures, and futures[i] shares the state with promises[i].
      }];
    
      let arguments = (ins
        I32Attr:$num
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 22:07:30 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

        headersDelayAmount = delay
        headersDelayUnit = unit
      }
    
      fun getHeadersDelay(unit: TimeUnit): Long = unit.convert(headersDelayAmount, headersDelayUnit)
    
      fun withPush(promise: PushPromise) =
        apply {
          promises.add(promise)
        }
    
      fun withSettings(settings: Settings) =
        apply {
          this.settings = settings
        }
    
      fun withWebSocketUpgrade(listener: WebSocketListener) =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. docs_src/generate_clients/tutorial004.js

    import * as fs from 'fs'
    
    async function modifyOpenAPIFile(filePath) {
      try {
        const data = await fs.promises.readFile(filePath)
        const openapiContent = JSON.parse(data)
    
        const paths = openapiContent.paths
        for (const pathKey of Object.keys(paths)) {
          const pathData = paths[pathKey]
          for (const method of Object.keys(pathData)) {
            const operation = pathData[method]
            if (operation.tags && operation.tags.length > 0) {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 14 11:40:05 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_tensor.h

      // stream.
      void WaitForDefinitionEventOnStream(se::Stream* stream);
    
      // (Re)sets the definition event of the tensor to 'event', and promises that
      // the tensor has already been defined on stream. Removes any previous
      // definition event or any previous promises about the tensor being defined on
      // streams.
      // It is legal to reset the definition event of a tensor when overwriting the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package promise
    
    import (
    	"sync"
    
    	"k8s.io/apimachinery/pkg/util/runtime"
    	"k8s.io/apiserver/pkg/util/flowcontrol/counter"
    	promiseifc "k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise"
    )
    
    // countingPromise implements the WriteOnce interface.
    // This implementation is based on a condition variable.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  7. src/compress/gzip/example_test.go

    		}
    	}()
    
    	// Send an HTTP request to the test server.
    	req, err := http.NewRequest("PUT", ts.URL, bodyReader)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// Note that passing req to http.Client.Do promises that it
    	// will close the body, in this case bodyReader.
    	resp, err := ts.Client().Do(req)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// Check whether there was an error compressing the data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 22 16:24:14 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  8. misc/cgo/gmp/gmp.go

    type Int struct {
    	i    C.mpz_t
    	init bool
    }
    
    // NewInt returns a new Int initialized to x.
    func NewInt(x int64) *Int { return new(Int).SetInt64(x) }
    
    // Int promises that the zero value is a 0, but in gmp
    // the zero value is a crash.  To bridge the gap, the
    // init bool says whether this is a valid gmp value.
    // doinit initializes z.i if it needs it.  This is not inherent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise.go

    limitations under the License.
    */
    
    package promise
    
    import (
    	"context"
    	"sync"
    )
    
    // promise implements the WriteOnce interface.
    type promise struct {
    	doneCtx context.Context
    	doneVal interface{}
    	setCh   chan struct{}
    	onceler sync.Once
    	value   interface{}
    }
    
    var _ WriteOnce = &promise{}
    
    // NewWriteOnce makes a new thread-safe WriteOnce.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 19:19:31 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/service-provider/src/main/java/org/gradle/internal/service/Provides.java

    import java.lang.annotation.Target;
    
    /**
     * Used to register service factory methods on a {@link ServiceRegistrationProvider}.
     */
    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.METHOD)
    @Keep
    public @interface Provides {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:03 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top