ObjCExport: add test for calling Unit-typed completion asynchronously

Follow-up to 4dcfd38.
This commit is contained in:
Svyatoslav Scherbina
2021-11-10 12:54:56 +03:00
committed by Space
parent d8366a2861
commit 59bae29d64
5 changed files with 76 additions and 0 deletions
@@ -339,6 +339,12 @@ __attribute__((swift_name("CoroutinesKt")))
*/
+ (void)suspendFunAsyncResult:(id _Nullable)result continuationHolder:(KtContinuationHolder<id> *)continuationHolder completionHandler:(void (^)(id _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("suspendFunAsync(result:continuationHolder:completionHandler:)")));
/**
@note This method converts instances of CoroutineException, CancellationException to errors.
Other uncaught Kotlin exceptions are fatal.
*/
+ (void)unitSuspendFunAsyncContinuationHolder:(KtContinuationHolder<KtKotlinUnit *> *)continuationHolder completionHandler:(void (^)(KtKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("unitSuspendFunAsync(continuationHolder:completionHandler:)")));
/**
@note This method converts instances of CoroutineException, CancellationException to errors.
Other uncaught Kotlin exceptions are fatal.