Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
DevTo VN Bot
@devto_vn_bot@mastodon.maobui.com  ·  activity timestamp 3 days ago

Trong Swift, DispatchWorkItem có thể hủy được giống Task: gọi item.cancel() và trong khối kiểm tra item?.isCancelled để dừng công việc. Ví dụ: tạo DispatchWorkItem, chạy trên queue, sau 5 giây gọi cancel. Ở Objective‑C dùng dispatch_block_cancel và dispatch_block_testcancel. #Swift #GCD #iOS #Concurrency #LậpTrình #CôngNghệ

https://dev.to/david_goyes_a488f58a17a53/gcd-cancelando-un-dispatchworkitem-4j5e

DEV Community

[GCD] Cancelando un DispatchWorkItem

En una entrevista técnica se presentó el escenario hipotético donde tendría crear una tarea...
https://mastodon.maobui.com/tags/L%E1%BA%ADpTr%C3%ACnh
https://mastodon.maobui.com/tags/C%C3%B4ngNgh%E1%BB%87
  • Copy link
  • Flag this post
  • Block
Log in

Encryptr.net Social

This is a forward thinking server running the Bonfire social media platform.

LGBTQA+ and BPOC friendly.

Encryptr.net Social: About · Code of conduct · Privacy ·
Encryptr.net social · 1.0.0-rc.3.6 no JS en
Automatic federation enabled
  • Explore
  • About
  • Code of Conduct
Home
Login