google / promises

Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.
Apache License 2.0
3.8k stars 293 forks source link

FBLPromise with Bool as Value in ObjC #47

Closed cHaLkdusT closed 6 years ago

cHaLkdusT commented 6 years ago

Hi all,

Silly question, how do I create a Promise that produces streams of Bool values in Objective-C. Since, BOOL is not a pointer type in ObjC, should I use NSNumber instead?

Many thanks. Chalk

shoumikhin commented 6 years ago

Hi Chalk! That's correct, you have to use NSNumber to wrap BOOLs.