Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for tryMap (0.12 sec)

  1. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/TryTest.groovy

            def failure = Try.<Integer>failure(new RuntimeException("failed"))
            expect:
            failure.map { it + 1 } == failure
        }
    
        def "fail during tryMap"() {
            def failure = new RuntimeException("failure")
            expect:
            Try.successful(10).tryMap { throw failure } == Try.failure(failure)
        }
    
        def "fail during map"() {
            def failure = new RuntimeException("failure")
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/functional/src/main/java/org/gradle/internal/Try.java

         * mapping function to the value, otherwise returns
         * the {@code Try} representing the original failure.
         *
         * This is similar to {@link #tryMap(Function)} but propagates any exception the given function throws.
         */
        public abstract <U> Try<U> map(Function<? super T, U> f);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. src/syscall/syscall_openbsd_libc.go

    	// work for the time being. See #63900 for further details.
    	if trap == SYS___SYSCTL {
    		return syscall6X(abi.FuncPCABI0(libc_sysctl_trampoline), a1, a2, a3, a4, a5, a6)
    	}
    	return 0, 0, ENOSYS
    }
    
    func rawSyscallInternal(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    
    func rawSyscall6Internal(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	return 0, 0, ENOSYS
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/internal/syscall/unix/at_solaris.go

    package unix
    
    import "syscall"
    
    // Implemented as sysvicall6 in runtime/syscall_solaris.go.
    func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    
    // Implemented as rawsysvicall6 in runtime/syscall_solaris.go.
    func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
    
    //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 814 bytes
    - Viewed (0)
  5. src/runtime/sema.go

    	s.g = getg()
    	s.elem = unsafe.Pointer(addr)
    	s.next = nil
    	s.prev = nil
    	s.waiters = 0
    
    	var last *sudog
    	pt := &root.treap
    	for t := *pt; t != nil; t = *pt {
    		if t.elem == unsafe.Pointer(addr) {
    			// Already have addr in list.
    			if lifo {
    				// Substitute s in t's place in treap.
    				*pt = s
    				s.ticket = t.ticket
    				s.acquiretime = t.acquiretime // preserve head acquiretime as oldest time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/runtime/export_debug_test.go

    	// Double-check m.
    	if getg().m != h.mp {
    		println("trap on wrong M", getg().m, h.mp)
    		return false
    	}
    	f := findfunc(ctxt.sigpc())
    	if !(stringslite.HasPrefix(funcname(f), "runtime.debugCall") || stringslite.HasPrefix(funcname(f), "debugCall")) {
    		println("trap in unknown function", funcname(f))
    		return false
    	}
    	if !sigctxtAtTrapInstruction(ctxt) {
    		println("trap at non-INT3 instruction pc =", hex(ctxt.sigpc()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/sync/map.go

    			return nil, false
    		}
    		if e.p.CompareAndSwap(p, nil) {
    			return *p, true
    		}
    	}
    }
    
    // trySwap swaps a value if the entry has not been expunged.
    //
    // If the entry is expunged, trySwap returns false and leaves the entry
    // unchanged.
    func (e *entry) trySwap(i *any) (*any, bool) {
    	for {
    		p := e.p.Load()
    		if p == expunged {
    			return nil, false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. hack/verify-openapi-docs-urls.sh

    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    SPECROOT="${KUBE_ROOT}/api/openapi-spec"
    SPECV3PATH="${SPECROOT}/v3"
    
    _tmpdir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
    mkdir -p "${_tmpdir}"
    trap 'rm -rf ${_tmpdir}' EXIT SIGINT
    trap "echo Aborted; exit;" SIGINT SIGTERM
    
    TMP_URLS="${_tmpdir}/docs_urls.txt"
    touch "${TMP_URLS}"
    
    
    for full_repo_path in "${SPECV3PATH}"/*.json; do
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 05:44:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. cluster/gce/gci/configure.sh

    }
    
    # Sets an EXIT trap.
    # Args:
    #   $1:... : the trap command.
    #
    # NOTE: this function is duplicated in configure-helper.sh, any changes here
    # should be duplicated there as well.
    function log-trap-push {
      local t="${*:1}"
      LOG_TRAP_STACK+=("${t}")
      # shellcheck disable=2064
      trap "${t}" EXIT
    }
    
    # Removes and restores an EXIT trap.
    #
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 04:14:02 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux.go

    //go:nosplit
    //go:norace
    //go:linkname RawSyscall
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    	return RawSyscall6(trap, a1, a2, a3, 0, 0, 0)
    }
    
    //go:uintptrkeepalive
    //go:nosplit
    //go:norace
    //go:linkname RawSyscall6
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) {
    	var errno uintptr
    	r1, r2, errno = runtimesyscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
    	err = Errno(errno)
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top