MBXCancelable.h 758 B

12345678910111213141516171819202122232425262728
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /**
  4. * Allows to cancel the associated asynchronous operation
  5. *
  6. * The associated asynchronous operation is not automatically canceled if this
  7. * object goes out of scope.
  8. */
  9. NS_SWIFT_NAME(Cancelable)
  10. __attribute__((visibility ("default")))
  11. @interface MBXCancelable : NSObject
  12. // This class provides custom init which should be called
  13. - (nonnull instancetype)init NS_UNAVAILABLE;
  14. // This class provides custom init which should be called
  15. + (nonnull instancetype)new NS_UNAVAILABLE;
  16. /**
  17. * Cancels the associated asynchronous operation
  18. *
  19. * If the associated asynchronous operation has already finished, this call is ignored.
  20. */
  21. - (void)cancel;
  22. @end