RACScopedDisposable.h 486 B

12345678910111213141516171819
  1. //
  2. // RACScopedDisposable.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Josh Abernathy on 3/28/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import "RACDisposable.h"
  9. /// A disposable that calls its own -dispose when it is dealloc'd.
  10. @interface RACScopedDisposable : RACDisposable
  11. /// Creates a new scoped disposable that will also dispose of the given
  12. /// disposable when it is dealloc'd.
  13. + (instancetype)scopedDisposableWithDisposable:(RACDisposable *)disposable;
  14. @end