No Description

AWSGeneric.h 853B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2014, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #import <Foundation/Foundation.h>
  11. #pragma once
  12. /**
  13. This exists to use along with `AWSTask` and `AWSTaskCompletionSource`.
  14. Instead of returning a `AWSTask` with no generic type, or a generic type of 'NSNull'
  15. when there is no usable result from a task, we use the type 'AWSVoid', which will always have a value of `nil`.
  16. This allows you to provide a more enforced API contract to the caller,
  17. as sending any message to `AWSVoid` will result in a compile time error.
  18. */
  19. @class _AWSVoid_Nonexistant;
  20. typedef _AWSVoid_Nonexistant *AWSVoid;