RACSubject.h 548 B

1234567891011121314151617181920212223
  1. //
  2. // RACSubject.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Josh Abernathy on 3/9/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import "RACSignal.h"
  9. #import "RACSubscriber.h"
  10. /// A subject can be thought of as a signal that you can manually control by
  11. /// sending next, completed, and error.
  12. ///
  13. /// They're most helpful in bridging the non-RAC world to RAC, since they let you
  14. /// manually control the sending of events.
  15. @interface RACSubject : RACSignal <RACSubscriber>
  16. /// Returns a new subject.
  17. + (instancetype)subject;
  18. @end