简体   繁体   中英

What is oneway Bool in objectC

In my software, it has a function as below

- (oneway BOOL)saveDocument:(INJDocument *)document

I don't understand about oneway Bool . Can you explain to me What is the meaning of "oneway Bool"?, when should we use it?

oneway is used with the distributed objects API, which allows use of Objective-C objects between different threads or applications. It tells the system that it should not block the calling thread until the method returns. Without it, the caller will block, even though the method's return type is void.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM