objective-coneway

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?


Solution

  • 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.