commit | author | age
|
13e53a
|
1 |
/* |
H |
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 |
|
|
11 |
#import <Foundation/Foundation.h> |
|
12 |
|
|
13 |
#pragma once |
|
14 |
|
|
15 |
/** |
|
16 |
This exists to use along with `BFTask` and `BFTaskCompletionSource`. |
|
17 |
|
|
18 |
Instead of returning a `BFTask` with no generic type, or a generic type of 'NSNull' |
|
19 |
when there is no usable result from a task, we use the type 'BFVoid', which will always have a value of `nil`. |
|
20 |
|
|
21 |
This allows you to provide a more enforced API contract to the caller, |
|
22 |
as sending any message to `BFVoid` will result in a compile time error. |
|
23 |
*/ |
|
24 |
@class _BFVoid_Nonexistant; |
|
25 |
typedef _BFVoid_Nonexistant *BFVoid; |