NSRunLoop+SRWebSocket.h 635 B

123456789101112131415161718192021222324252627
  1. //
  2. // Copyright 2012 Square Inc.
  3. // Portions Copyright (c) 2016-present, Facebook, Inc.
  4. //
  5. // All rights reserved.
  6. //
  7. // This source code is licensed under the BSD-style license found in the
  8. // LICENSE file in the root directory of this source tree. An additional grant
  9. // of patent rights can be found in the PATENTS file in the same directory.
  10. //
  11. #import <Foundation/Foundation.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface NSRunLoop (SRWebSocket)
  14. /**
  15. Default run loop that will be used to schedule all instances of `SRWebSocket`.
  16. @return An instance of `NSRunLoop`.
  17. */
  18. + (NSRunLoop *)SR_networkRunLoop;
  19. @end
  20. NS_ASSUME_NONNULL_END