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