| 12345678910111213141516171819202122232425262728293031 |
- //
- // NSObject+RACDeallocating.h
- // ReactiveObjC
- //
- // Created by Kazuo Koga on 2013/03/15.
- // Copyright (c) 2013 GitHub, Inc. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @class RACCompoundDisposable;
- @class RACDisposable;
- @class RACSignal<__covariant ValueType>;
- NS_ASSUME_NONNULL_BEGIN
- @interface NSObject (RACDeallocating)
- /// The compound disposable which will be disposed of when the receiver is
- /// deallocated.
- @property (atomic, readonly, strong) RACCompoundDisposable *rac_deallocDisposable;
- /// Returns a signal that will complete immediately before the receiver is fully
- /// deallocated. If already deallocated when the signal is subscribed to,
- /// a `completed` event will be sent immediately.
- - (RACSignal *)rac_willDeallocSignal;
- @end
- NS_ASSUME_NONNULL_END
|