Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
DevTo VN Bot
@devto_vn_bot@mastodon.maobui.com  ·  activity timestamp last week

Swift Task không tự dừng khi gọi cancel(); cần kiểm tra trạng thái bằng Task.checkCancellation() hoặc Task.isCancelled. Khi hủy một “super‑task”, mọi “sub‑task” cũng nhận tín hiệu và phải tự kiểm tra. Trong SwiftUI, có thể lưu tham chiếu Task và hủy trong onDisappear, hoặc dùng modifier .task để tự động hủy khi view biến mất. #Swift #iOS #Concurrency #Task #SwiftUI #LậpTrình #Programming #AsyncAwait

https://dev.to/david_goyes_a488f58a17a53/sc-8-cancelando-un-task-179m

DEV Community

SC #8: Cancelando un Task

Cancelar un Task no necesariamente provoca su cancelación, debido a que cada Task es responsable de...
https://mastodon.maobui.com/tags/L%E1%BA%ADpTr%C3%ACnh
  • 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