UIPasteboard doesn't state anything about thread safety
| Originator: | michaelhochs | ||
| Number: | rdar://28799568 | Date Originated: | 2016-10-17 |
| Status: | Open | Resolved: | |
| Product: | Documentation | Product Version: | iOS 10.0 |
| Classification: | Reproducible: |
Summary: The documentation of UIPasteboard does not say anything about thread safety. Given that the general pasteboard is a shared resource across different processes and given the fact that starting with iOS 10 it even makes network requests to retrieve items from other devices, I would assume the pasteboard is thread safe. However as it belongs to UIKit and UIKit has the golden rule of not being thread safe unless stated otherwise somewhere in their documentation, I am really not sure about this. There should be something in the documentation mentioning this, one way or another. Especially as there are quite some use cases where accessing it on a background thread is very useful as it otherwise may block the main thread (rdar://28787338) Steps to Reproduce: Expected Results: Actual Results: Version: UIPasteboard - https://developer.apple.com/reference/uikit/uipasteboard Notes: Configuration: Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!