Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 225 for tryMap (0.15 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/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)
  4. 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)
  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/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)
  7. 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)
  8. src/syscall/asm_darwin_arm64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    //
    // System call support for ARM64, Darwin
    //
    
    // func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	BL	runtime·entersyscall<ABIInternal>(SB)
    	MOVD	trap+0(FP), R16
    	MOVD	a1+8(FP), R0
    	MOVD	a2+16(FP), R1
    	MOVD	a3+24(FP), R2
    	SVC	$0x80
    	BCC	ok
    	MOVD	$-1, R1
    	MOVD	R1, r1+32(FP)	// r1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  9. src/syscall/asm_unix_amd64.s

    #include "funcdata.h"
    
    //
    // System call support for AMD64 unixes
    //
    
    // func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64)
    // func Syscall6(trap int64, a1, a2, a3, a4, a5, a6 int64) (r1, r2, err int64)
    // Trap # in AX, args in DI SI DX, return in AX DX
    
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	CALL	runtime·entersyscall<ABIInternal>(SB)
    	MOVQ	trap+0(FP), AX	// syscall entry
    	MOVQ	a1+8(FP), DI
    	MOVQ	a2+16(FP), SI
    	MOVQ	a3+24(FP), DX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  10. src/syscall/asm_linux_arm64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // func rawVforkSyscall(trap, a1, a2, a3 uintptr) (r1, err uintptr)
    TEXT ·rawVforkSyscall(SB),NOSPLIT,$0-48
    	MOVD	a1+8(FP), R0
    	MOVD	a2+16(FP), R1
    	MOVD	a3+24(FP), R2
    	MOVD	$0, R3
    	MOVD	$0, R4
    	MOVD	$0, R5
    	MOVD	trap+0(FP), R8	// syscall entry
    	SVC
    	CMN	$4095, R0
    	BCC	ok
    	MOVD	$-1, R4
    	MOVD	R4, r1+32(FP)	// r1
    	NEG	R0, R0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:11:15 UTC 2023
    - 916 bytes
    - Viewed (0)
Back to top