Allow suspend extensions for specially annotated controllers

This commit is contained in:
Denis Zharkov
2016-07-05 15:32:46 +03:00
parent 30b4dfa65d
commit 2cc09f928e
11 changed files with 68 additions and 5 deletions
+8
View File
@@ -31,3 +31,11 @@ interface Continuation<in P> {
*/
fun resumeWithException(exception: Throwable)
}
/**
* Specifies that suspend extensions with a receiver based on corresponding controller class are allowed to be declared
*/
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.BINARY)
annotation class AllowSuspendExtensions