RACReplaySubject.h 656 B

1234567891011121314151617181920212223
  1. //
  2. // RACReplaySubject.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Josh Abernathy on 3/14/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import "RACSubject.h"
  9. extern const NSUInteger RACReplaySubjectUnlimitedCapacity;
  10. /// A replay subject saves the values it is sent (up to its defined capacity)
  11. /// and resends those to new subscribers. It will also replay an error or
  12. /// completion.
  13. @interface RACReplaySubject : RACSubject
  14. /// Creates a new replay subject with the given capacity. A capacity of
  15. /// RACReplaySubjectUnlimitedCapacity means values are never trimmed.
  16. + (instancetype)replaySubjectWithCapacity:(NSUInteger)capacity;
  17. @end