File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -122,4 +122,16 @@ __strong __typeof__(var) var = var ## _weak;
122
122
}) \
123
123
)
124
124
125
+ /* !
126
+ This exists to use along with bolts generic tasks. Instead of returning a BFTask with no generic type, or a generic
127
+ type of 'NSNull' when there is no usable result from a task, we use the type 'PFVoid', which will always have a value
128
+ of 'nil'.
129
+
130
+ This allows us to more easily descern between methods that have not yet updated the return type of their tasks, as well
131
+ as provide a more enforced API contract to the caller (as sending any message to PFVoid will result in a compile time
132
+ error).
133
+ */
134
+ @class _PFVoid_Nonexistant;
135
+ typedef _PFVoid_Nonexistant *PFVoid;
136
+
125
137
#endif
You can’t perform that action at this time.
0 commit comments