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
Hey @fatuhoku, thanks for the report.
Indeed it looks like Swift can't determine which method you meant, since we have two methods that end with a block.
Please keep in mind that this API was designed when public and we didn't know about existence of Swift at all. This said, we are working on making Bolts happen in Swift, which will ultimately solve this.
Swift lets you use syntactic sugar when there's a block at the end of a function. When I tried to do this:
I surprisingly got:
Ambiguous use of 'continueWithExecutor(_:withBlock:)'
I figured that it was because there were potential matches:
This API isn't very optimised for Swift and makes Bolts quite counter-intuitive to learn.
The text was updated successfully, but these errors were encountered: