0

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?

tangrs
  • 9,709
  • 1
  • 38
  • 53
NextTrang
  • 5
  • 5
  • You can read it: [link](https://stackoverflow.com/questions/5494981/use-case-of-oneway-void-in-objective-c) – Rin Aug 01 '17 at 06:52
  • 1
    Possible duplicate of [Use-case of \`oneway void\` in Objective-C?](https://stackoverflow.com/questions/5494981/use-case-of-oneway-void-in-objective-c) – vadian Aug 01 '17 at 06:55

1 Answers1

0

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.

iticle
  • 131
  • 1
  • 4
  • You should reference the answer you copied and pasted this from. https://stackoverflow.com/a/5495195/268025 – tangrs Sep 06 '17 at 00:53