Skip to content

Example project for Calling Objective-C APIs Asynchronously

Notifications You must be signed in to change notification settings

naru-jpn/AsyncObjC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AsyncObjC

Example Project for Calling Objective-C APIs Asynchronously.

Overview

Method written Objective-C having specific format completion is automatically converted asynchronous functions in Swift.

  1. The method has a void return type.
  2. The block has a void return type.
  3. The block is called exactly once, on all possible paths of control flow.

For example,

- (void)handleVoidWithCompletion:(void (^)(void))completion;

can be called as below in Swift.

await objc.handleVoid()

Example

About

Example project for Calling Objective-C APIs Asynchronously

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published