NSData+RACSupport.h 625 B

1234567891011121314151617181920212223242526
  1. //
  2. // NSData+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 NSData (RACSupport)
  13. // Read the data at the URL using -[NSData initWithContentsOfURL:options:error:].
  14. // Sends the data or the error.
  15. //
  16. // scheduler - cannot be nil.
  17. + (RACSignal<NSData *> *)rac_readContentsOfURL:(nullable NSURL *)URL options:(NSDataReadingOptions)options scheduler:(RACScheduler *)scheduler;
  18. @end
  19. NS_ASSUME_NONNULL_END