You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are on swift version < 4.1 the predicateBlock has type var predicateBlock: ((_ count: Int, _ error: Error) -> ObjCBool)?
This gives an error when used below in the onQueue call because the condition type is defined as: typedef BOOL (^FBLPromiseRetryPredicateBlock)(NSInteger, NSError *)
Cannot convert value of type '((Int, Error) -> ObjCBool)?' to expected argument type '((Int, Error) -> Bool)?'
The text was updated successfully, but these errors were encountered:
I'm not sure that the swift version check is even necessary...
"C typedefs of block types are imported as typealiass for Swift closures.
The primary result of this is that typedefs for blocks with a parameter of type BOOL are imported as closures with a parameter of type Bool (rather than ObjCBool as in the previous release). This matches the behavior of block parameters to imported Objective-C methods. (22013912)"
When we are on swift version < 4.1 the predicateBlock has type
var predicateBlock: ((_ count: Int, _ error: Error) -> ObjCBool)?
This gives an error when used below in the onQueue call because the condition type is defined as:
typedef BOOL (^FBLPromiseRetryPredicateBlock)(NSInteger, NSError *)
The text was updated successfully, but these errors were encountered: