RestrictsSuspension

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@Target([AnnotationTarget.CLASS]) annotation class RestrictsSuspension

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 particular receiver and are restricted from calling arbitrary suspension functions.

Constructors

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

<init>

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 particular receiver and are restricted from calling arbitrary suspension functions.

RestrictsSuspension()

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines/-restricts-suspension/index.html