Update coroutine related runtime parts
This commit is contained in:
committed by
Stanislav Erokhin
parent
852a5ee064
commit
72401efb9f
@@ -37,4 +37,4 @@ package kotlin.coroutines
|
||||
* Use [runWithCurrentContinuation] as a safer way to obtain current continuation instance.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
public inline suspend fun <T> maySuspendWithCurrentContinuation(body: (Continuation<T>) -> Any?): T
|
||||
public inline suspend fun <T> suspendWithCurrentContinuation(body: (Continuation<T>) -> Any?): T
|
||||
|
||||
@@ -49,10 +49,15 @@ public annotation class AllowSuspendExtensions
|
||||
@SinceKotlin("1.1")
|
||||
public val SUSPENDED: Any? = Any()
|
||||
|
||||
@SinceKotlin("1.1")
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
public annotation class Suspend
|
||||
|
||||
/**
|
||||
* Classes and interfaces marked with this annotation are restricted when used as receivers for extension
|
||||
* `suspend` functions. These `suspend` extensions can only invoke other member or extension `suspend` functions on this parcitular
|
||||
* receiver only and are restricted from calling arbitrary suspension functions.
|
||||
*/
|
||||
@SinceKotlin("1.1")
|
||||
public annotation class RestrictSuspension
|
||||
public annotation class RestrictSuspension
|
||||
|
||||
Reference in New Issue
Block a user