Instance Method

invalidateAndCancel()

Cancels all outstanding tasks and then invalidates the session.

Declaration

func invalidateAndCancel()

Discussion

Once invalidated, references to the delegate and callback objects are broken. After invalidation, session objects cannot be reused.

To allow outstanding tasks to run until completion, call finishTasksAndInvalidate() instead.