Cancel async action with CancelToken in iOS

Sayler8182
Nov 18, 2020
Photo by John Matychuk on Unsplash

Asynchronous work is common in iOS architecture. I’m sure You’ve already used GDC before. Sometimes you want to cancel async operation because you no longer need the result or you just want to stop current work. It can be done by using DispatchWorkItem.

--

--