how to stop a dispatchQueue in swift

后端 未结 3 1588
-上瘾入骨i
-上瘾入骨i 2021-01-13 17:43

I have a DispatchQueue for a introViewController that shows a gif for 11 seconds and then display my login page... But also have a button that skip the intro and display the

3条回答
  •  旧时难觅i
    2021-01-13 18:11

    You don't stop the queue. Instead, when the task that you dispatched starts executing, it needs to check its context and do the right thing (often: nothing) if the context has changed.

提交回复
热议问题