NSString+RACSupport.h 690 B

1234567891011121314151617181920212223242526
  1. //
  2. // NSString+RACSupport.h
  3. // ReactiveObjC
  4. //
  5. // Created by Josh Abernathy on 5/11/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class RACScheduler;
  10. @class RACSignal<__covariant ValueType>;
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface NSString (RACSupport)
  13. // Reads in the contents of the file using +[NSString stringWithContentsOfURL:usedEncoding:error:].
  14. // Note that encoding won't be valid until the signal completes successfully.
  15. //
  16. // scheduler - cannot be nil.
  17. + (RACSignal<NSString *> *)rac_readContentsOfURL:(NSURL *)URL usedEncoding:(NSStringEncoding *)encoding scheduler:(RACScheduler *)scheduler;
  18. @end
  19. NS_ASSUME_NONNULL_END