Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 269 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/cmd/vendor/golang.org/x/sys/unix/gccgo.go

    func realSyscallNoError(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r uintptr)
    
    func realSyscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r, errno uintptr)
    
    func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) {
    	syscall.Entersyscall()
    	r := realSyscallNoError(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0)
    	syscall.Exitsyscall()
    	return r, 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. src/syscall/asm_plan9_amd64.s

    #include "textflag.h"
    #include "funcdata.h"
    
    //
    // System call support for Plan 9
    //
    
    //func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err string)
    //func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err string)
    //func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
    //func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
    
    #define SYS_ERRSTR 41	/* from zsysnum_plan9.go */
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 01:29:17 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  5. src/syscall/asm_darwin_amd64.s

    #include "funcdata.h"
    
    //
    // System call support for AMD64, Darwin
    //
    
    // Trap # in AX, args in DI SI DX, return in AX DX
    
    // func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno);
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	CALL	runtime·entersyscall<ABIInternal>(SB)
    	MOVQ	a1+8(FP), DI
    	MOVQ	a2+16(FP), SI
    	MOVQ	a3+24(FP), DX
    	MOVQ	trap+0(FP), AX	// syscall entry
    	ADDQ	$0x2000000, AX
    	SYSCALL
    	JCC	ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  6. src/syscall/asm_openbsd_arm.s

    // rather than ABIInternal.
    
    // func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    TEXT	·Syscall(SB),NOSPLIT,$0-28
    	JMP	·syscallInternal(SB)
    
    // func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    TEXT	·Syscall6(SB),NOSPLIT,$0-40
    	JMP	·syscall6Internal(SB)
    
    // func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    TEXT	·RawSyscall(SB),NOSPLIT,$0-28
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 09 17:07:01 UTC 2021
    - 1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/gccgo_c.c

    	errno = 0;
    	r.r = syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9);
    	r.err = errno;
    	return r;
    }
    
    uintptr_t gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9)
      __asm__(GOSYM_PREFIX GOPKGPATH ".realSyscallNoError");
    
    uintptr_t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/runtime/signal_plan9.go

    	// Traps that we cannot be recovered.
    	{_SigThrow, "sys: trap: debug exception"},
    	{_SigThrow, "sys: trap: invalid opcode"},
    
    	// We can recover from some memory errors in runtime·sigpanic.
    	{_SigPanic, "sys: trap: fault read"},  // SIGRFAULT
    	{_SigPanic, "sys: trap: fault write"}, // SIGWFAULT
    
    	// We can also recover from math errors.
    	{_SigPanic, "sys: trap: divide error"}, // SIGINTDIV
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 16:25:17 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  9. src/syscall/asm_openbsd_386.s

    // rather than ABIInternal.
    
    // func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    TEXT	·Syscall(SB),NOSPLIT,$0-28
    	JMP	·syscallInternal(SB)
    
    // func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    TEXT	·Syscall6(SB),NOSPLIT,$0-40
    	JMP	·syscall6Internal(SB)
    
    // func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    TEXT	·RawSyscall(SB),NOSPLIT,$0-28
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 30 20:00:36 UTC 2021
    - 1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go

    package unix
    
    import "syscall"
    
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
    	return syscall.Syscall(trap, a1, a2, a3)
    }
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
    	return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
    }
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
    	return syscall.RawSyscall(trap, a1, a2, a3)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 786 bytes
    - Viewed (0)
Back to top