Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for suspending (0.38 sec)

  1. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Running.kt

     */
    fun <T : WriteContext, U> T.runWriteOperation(writeOperation: suspend T.() -> U): U =
        runToCompletion {
            writeOperation()
        }
    
    
    /**
     * [Starts][startCoroutine] the suspending [block], asserts it runs
     * to completion and returns its result.
     */
    private
    fun <R> runToCompletion(block: suspend () -> R): R {
        var completion: Result<R>? = null
        block.startCoroutine(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 20:48:51 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Codec.kt

        val classLoader: ClassLoader
    
        fun beanStateReaderFor(beanType: Class<*>): BeanStateReader
    
        /**
         * When in immediate mode, [read] calls are NOT suspending.
         * Useful for bridging with non-suspending serialization protocols such as [java.io.Serializable].
         */
        var immediateMode: Boolean // TODO:configuration-cache prevent StackOverflowErrors when crossing protocols
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top