Last active
August 15, 2020 20:36
-
-
Save victorpanitz/96489e3c3d48cb3cff25822bc69ca55f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func cancelAllTasks() { | |
session.getAllTasks { tasks in | |
tasks.forEach { $0.cancel() } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment