What is oneway Bool in objectC

113 views Asked by At

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?

1

There are 1 answers

1
iticle On BEST ANSWER

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.