What is the significance of WaitUntilDOne in performSelectorOnMainThread?

前端 未结 4 774
攒了一身酷
攒了一身酷 2021-02-15 16:34

What is the significance of WaitUntilDOne in performSelectorOnMainThread?

IN what way the YES or NO set to Wait

4条回答
  •  清酒与你
    2021-02-15 17:10

    Generally, you want to avoid blocking the current thread's execution using YES.

    If NO, the message will be added to the main thread's run loop's to do list to be performed when the run loop resumes -- that could be soon and practically immediately/concurrently.

提交回复
热议问题