//
//  YSRACScopedDisposable.h
//  ReactiveObjC
//
//  Created by Josh Abernathy on 3/28/12.
//  Copyright (c) 2012 GitHub, Inc. All rights reserved.
//

#import "YSRACDisposable.h"

NS_ASSUME_NONNULL_BEGIN

/// A disposable that calls its own -dispose when it is dealloc'd.
@interface YSRACScopedDisposable : YSRACDisposable

/// Creates a new scoped disposable that will also dispose of the given
/// disposable when it is dealloc'd.
+ (instancetype)scopedDisposableWithDisposable:(YSRACDisposable *)disposable;

@end

NS_ASSUME_NONNULL_END
