RACBehaviorSubject.h 518 B

12345678910111213141516171819
  1. //
  2. // RACBehaviorSubject.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Josh Abernathy on 3/16/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import "RACSubject.h"
  9. /// A behavior subject sends the last value it received when it is subscribed to.
  10. @interface RACBehaviorSubject : RACSubject
  11. /// Creates a new behavior subject with a default value. If it hasn't received
  12. /// any values when it gets subscribed to, it sends the default value.
  13. + (instancetype)behaviorSubjectWithDefaultValue:(id)value;
  14. @end