UADisposable

Objective-C

@interface UADisposable : NSObject

Swift

class UADisposable : NSObject

A convenience class for creating self-referencing cancellation tokens.

Note

It is left up to the creator to determine what is disposed of and under what circumstances. This includes threading and memory management concerns.

Disposable Creation

Disposable Remove

  • Dispose of associated resources.

    Declaration

    Objective-C

    - (void)dispose;

    Swift

    func dispose()