Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 358 for unwrap (0.17 sec)

  1. internal/logger/logonce.go

    	}
    }
    
    const unwrapErrsDepth = 3
    
    // unwrapErrs upto the point where errors.Unwrap(err) returns nil
    func unwrapErrs(err error) (leafErr error) {
    	uerr := errors.Unwrap(err)
    	depth := 1
    	for uerr != nil {
    		// Save the current `uerr`
    		leafErr = uerr
    		// continue to look for leaf errors underneath
    		uerr = errors.Unwrap(leafErr)
    		depth++
    		if depth == unwrapErrsDepth {
    			// If we have reached enough depth we
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/bucket/replication/error.go

    // the string as a value that satisfies error of type tagging.Error
    func Errorf(format string, a ...interface{}) error {
    	return Error{err: fmt.Errorf(format, a...)}
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.err }
    
    // Error 'error' compatible method.
    func (e Error) Error() string {
    	if e.err == nil {
    		return "replication: cause <nil>"
    	}
    	return e.err.Error()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/ConcurrencyTest.java

                        .unwrap(SmbTransportInternal.class);
                      SmbSession sess = trans.unwrap(SmbTransportInternal.class).getSmbSession(c, getTestServer(), null);
                      SmbTreeInternal tree = sess.unwrap(SmbSessionInternal.class).getSmbTree(getTestShare(), null).unwrap(SmbTreeInternal.class) ) {
    
                    if ( trans.isSMB2() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

    import mockwebserver3.SocketPolicy.StallSocketAtStart
    
    internal fun Dispatcher.wrap(): mockwebserver3.Dispatcher {
      if (this is QueueDispatcher) return this.delegate
    
      val delegate = this
      return object : mockwebserver3.Dispatcher() {
        override fun dispatch(request: mockwebserver3.RecordedRequest): mockwebserver3.MockResponse {
          return delegate.dispatch(request.unwrap()).wrap()
        }
    
        override fun peek(): mockwebserver3.MockResponse {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      @Throws(InterruptedException::class)
      fun takeRequest(): RecordedRequest {
        return delegate.takeRequest().unwrap()
      }
    
      @Throws(InterruptedException::class)
      fun takeRequest(
        timeout: Long,
        unit: TimeUnit,
      ): RecordedRequest? {
        return delegate.takeRequest(timeout, unit)?.unwrap()
      }
    
      @JvmName("-deprecated_requestCount")
      @Deprecated(
        message = "moved to val",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/unified_api_testutil.h

          TF_NewStatus(), TF_DeleteStatus);
      TFE_Context* eager_ctx =
          TF_ExecutionContextGetTFEContext(wrap(ctx), status.get());
      TF_RETURN_IF_ERROR(StatusFromTF_Status(status.get()));
      TFE_TensorHandle* input_eager =
          TestTensorHandleWithDims<T, datatype>(eager_ctx, data, dims, num_dims);
      *tensor =
          unwrap(TF_CreateAbstractTensorFromEagerTensor(input_eager, status.get()));
      return absl::OkStatus();
    }
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/UniAddress.java

        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Address#unwrap(java.lang.Class)
         */
        @SuppressWarnings ( "unchecked" )
        @Override
        public <T extends Address> T unwrap ( Class<T> type ) {
            if ( this.addr instanceof Address ) {
                return ( (Address) this.addr ).unwrap(type);
            }
            else if ( this.getClass().isAssignableFrom(type) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                    node.followingNodes
                        .filter { it !is StubNode }
                        .map { it.unwrap() }
                        .distinct()
                        .sortedBy { it.id }
                }.distinct()
    
            return exitPoints.size > 1
        }
    
        private fun CFGNode<*>.unwrap(): CFGNode<*> {
            var current = this
    
            while (current.isExitNode()) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

                // That is not exactly `expr`, which would be [KtLambdaExpression]. So, we need [unwrap] here.
                valueArg.getArgumentExpression()?.unwrap() == expr
            } ?: return null
            val callExpression =
                (valueArgument.parent as? KtValueArgumentList)?.parent as? KtCallElement
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  10. api/next/63116.txt

    pkg net, type DNSError struct, UnwrapErr error #63116
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Sun Apr 14 18:23:45 GMT 2024
    - 104 bytes
    - Viewed (0)
Back to top