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