Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSNotification 是非阻塞调用。这是否意味着它以某种方式在内部运行线程?如果不是实际发生的情况:当观察者收到事件时它执行处理程序然后被观察者继续?在那种情况下,非阻塞实际上是假的?
我不是 100% 确定,但我相信它直接与事件循环处理代码相关联。我不认为它会启动线程。