Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 251 for suspendG (0.18 sec)

  1. subprojects/core/src/test/groovy/org/gradle/process/internal/JvmOptionsTest.groovy

            setup:
            def opts = createOpts()
    
            when:
            opts.debug = true
            opts.debugOptions.port.set(port)
            opts.debugOptions.server.set(server)
            opts.debugOptions.suspend.set(suspend)
    
            then:
            opts.allJvmArgs.findAll { it.contains 'jdwp' } == [expected]
    
            where:
            port | server | suspend | expected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BeanCodec.kt

    
    object BeanCodec : Codec<Any> {
    
        override suspend fun WriteContext.encode(value: Any) {
            encodePreservingIdentityOf(value) {
                val beanType = GeneratedSubclasses.unpackType(value)
                withBeanTrace(beanType) {
                    writeBeanOf(beanType, value)
                }
            }
        }
    
        override suspend fun ReadContext.decode(): Any =
            decodePreservingIdentity { id ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/UnitCodec.kt

    import org.gradle.internal.serialize.graph.ReadContext
    import org.gradle.internal.serialize.graph.WriteContext
    
    
    object UnitCodec : Codec<Unit> {
    
        override suspend fun WriteContext.encode(value: Unit) {
            // noop
        }
    
        override suspend fun ReadContext.decode() {
            // returns Unit instance under the hood
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/HashSetCodec.kt

     */
    object HashSetCodec : Codec<HashSet<Any?>> {
    
        override suspend fun WriteContext.encode(value: HashSet<Any?>) {
            writeCollectionCheckingForCircularElements(value)
        }
    
        override suspend fun ReadContext.decode(): HashSet<Any?> =
            readCollectionCheckingForCircularElementsInto(::LinkedHashSet)
    }
    
    
    private
    suspend fun WriteContext.writeCollectionCheckingForCircularElements(collection: Collection<Any?>) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/StreamCodecs.kt

        override suspend fun WriteContext.encode(value: InputStream) {
            if (value !== System.`in`) {
                logUnsupportedBaseType("serialize", InputStream::class, unpackType(value), appendix = supportedStreamsInfo())
                writeEnum(StreamReference.UNSUPPORTED)
                return
            }
            writeEnum(StreamReference.IN)
        }
    
        override suspend fun ReadContext.decode(): InputStream? {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Running.kt

     */
    fun <T : ReadContext, R> T.runReadOperation(readOperation: suspend T.() -> R): R {
        contract {
            callsInPlace(readOperation, InvocationKind.EXACTLY_ONCE)
        }
        return runToCompletion {
            readOperation()
        }
    }
    
    
    /**
     * Runs the given [writeOperation] synchronously.
     */
    fun <T : WriteContext, U> T.runWriteOperation(writeOperation: suspend T.() -> U): U =
        runToCompletion {
            writeOperation()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 20:48:51 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BeanSpecCodec.kt

     */
    class BeanSpec(val bean: Any)
    
    
    object BeanSpecCodec : Codec<BeanSpec> {
    
        override suspend fun WriteContext.encode(value: BeanSpec) =
            encodeBean(value.bean)
    
        override suspend fun ReadContext.decode(): BeanSpec =
            BeanSpec(decodeBean())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/MethodCodec.kt

    import java.lang.reflect.Method
    
    
    object MethodCodec : Codec<Method> {
    
        override suspend fun WriteContext.encode(value: Method) {
            writeClass(value.declaringClass)
            writeString(value.name)
            writeClassArray(value.parameterTypes)
        }
    
        override suspend fun ReadContext.decode(): Method? {
            val declaringClass = readClass()
            val methodName = readString()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecDebugIntegrationTest.groovy

            setup:
            sampleProject """
                debugOptions {
                    enabled = true
                    server = false
                    suspend = false
                }
    
                jvmArgs "-agentlib:jdwp=transport=dt_socket,server=n,suspend=n,address=$debugClient.port"
            """
    
            debugClient.listen()
    
            expect:
            succeeds(taskName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/EnumCodec.kt

                ?: EnumSubTypeEncoding.takeIf { type.superclass?.isEnum == true }
    
        override suspend fun ReadContext.decode(): Any? {
            val enumClass = readClass()
            val enumOrdinal = readSmallInt()
            return enumClass.enumConstants[enumOrdinal]
        }
    }
    
    
    private
    object EnumEncoding : Encoding {
        override suspend fun WriteContext.encode(value: Any) {
            writeEnumValueOf(value::class.java, value)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top