Skip to content

Commit 3a7b87c

Browse files
dlwetteronlineAndyScherzinger
authored andcommitted
add comments on kotlin coroutines
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 875221d commit 3a7b87c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/main/java/com/nextcloud/android/sso/api/NextcloudRetrofitServiceMethod.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ public NextcloudRetrofitServiceMethod(String apiEndpoint, @NonNull Method method
116116
}
117117

118118
/**
119-
* filter out empty parameter annotations (e.g. when using kotlin)
119+
* filter out empty parameter annotations (e.g. when using coroutines in kotlin (suspend functions))
120+
* For functions that are suspendable, the Continuation parameter will be added on the JVM side.
121+
* https://blog.kotlin-academy.com/a-little-reflection-about-coroutines-34050cbc4fe6
120122
* @param annotations
121123
* @return
122124
*/

0 commit comments

Comments
 (0)