Skip to content

Commit 19d36aa

Browse files
dlwetteronlineAndyScherzinger
authored andcommitted
add comments on kotlin coroutines
Signed-off-by: Andy Scherzinger <[email protected]>
1 parent 3075463 commit 19d36aa

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
@@ -105,7 +105,9 @@ public NextcloudRetrofitServiceMethod(String apiEndpoint, @NonNull Method method
105105
}
106106

107107
/**
108-
* filter out empty parameter annotations (e.g. when using kotlin)
108+
* filter out empty parameter annotations (e.g. when using coroutines in kotlin (suspend functions))
109+
* For functions that are suspendable, the Continuation parameter will be added on the JVM side.
110+
* https://blog.kotlin-academy.com/a-little-reflection-about-coroutines-34050cbc4fe6
109111
* @param annotations
110112
* @return
111113
*/

0 commit comments

Comments
 (0)