Comments (15)
Can you guys give some thoughts as to progress on this? ie: has it started, what the general strategy you are considering is?
NOTE: There's been a fork project that has started this already called Thunderbolts
from bolts-objc.
Absolutely, as we have generics in Swift - I think we can add support for new mechanics as well as much cleaner and safer! using Swift generics.
I will look into this, but, unfortunately, can't provide any time line...
from bolts-objc.
Great, thanks for confirming it's a priority. Looking forward to it!
from bolts-objc.
Any updates?
from bolts-objc.
+1
from bolts-objc.
+1
from bolts-objc.
Wanted to let you know guys that we are still tracking this, and that we are working on supporting Obj-C generics (and Swift generics as a result) with Bolts.framework very soon.
Stay tuned for updates on this issue...
from bolts-objc.
@nlutsenko Thanks for the update Nikita. Exciting stuff!
from bolts-objc.
Hey guys, congrats on the 1.2.2 release which looks like it has. This is a huge deal for Bolts!
One thing though, the documentation on the main page will have to be updated to show the usage of the genericized tasks everywhere. You guys shouldn't shy out on advertising and educating everyone about this large improvement. Please update the documentation so that everyone can be made aware and start adopting it in their codebases!
from bolts-objc.
Absolutely!
You can also drive this and send some PRs, we would be happy to review them.
I am going to close this issue, since this is done in #136
from bolts-objc.
Fantastic work guys! I may be able to do that when I get some time to put into this. No promises... but will try. :)
from bolts-objc.
Can you pease re-open this issue and note the team's plans for implementing it?
It seems generics was not added for Swift only Objective-C, as per this discussion thread: #191
from bolts-objc.
Hey everyone, we have a full Swift implementation now:
https://github.com/BoltsFramework/Bolts-Swift
It's runtime incompatible, but if anyone wants to take a shot at implementing conversion layer - I will gladly take a look at the Pull Request.
from bolts-objc.
@nlutsenko I just stumbled on this.
My project is in Swift and uses the Parse SDK, meaning I'm passing around a lot of BFTask<AnyObject>
objects. It works, but I would like it if I could type-instantiate BFTask
with my various result types.
My understanding is that this isn't currently possible for my project, since (1) I can't use Objective-C's generics features in Swift and (2) the Task
type in Bolts-Swift, which is generic, isn't interchangeable with BFTask
and so won't work in my code (unless I write the conversion layer you alluded to, but I wouldn't even know where to begin on that).
Do you know a way I can use type-instantiated BFTask
s or Task
s in my Swift code that depends on the Parse SDK, without writing that conversion layer? Or perhaps that undertaking shouldn't sound as intimidating as it does?
from bolts-objc.
This is a good question!
Unfortunately, as of right now, you would need to create a manual conversion layer between BFTask
and BoltsSwift.Task
.
I also would love to see this eventually being added upstream to BoltsSwift
, meaning that PRs are very welcome!
from bolts-objc.
Related Issues (20)
- Documents not available at 1.9.0 on cocoapods.org. HOT 1
- EXC_BAD_ACCESS in BfTask.m
- Next Version Release? HOT 5
- 7 Semantic Issues in XCode 10.1 with Bolts 1.9.0 HOT 3
- ``` HOT 2
- setException deprecated
- Apple Review HOT 10
- Need the Bolts framework with mac catalyst support HOT 2
- Script build_framework.sh fails HOT 1
- need latest BoltsFramework HOT 1
- Built framework lacks slices HOT 2
- Bolts not updating to 1.9.1
- REMOVE ALL UIWEBVIEW REFERENCES OR TEXT IN README.MD
- IPhone
- Crash BFTask.m - Line 54 Crashed: com.parse.asynctaskqueue.sync SIGABRT ABORT 0x00000001b70da95c HOT 3
- U
- Failed to install apps when using Carthage and Xcode12.5 HOT 1
- Is Bolts relevant in 2022 for handling simple deeplinks opening from Facebook?
- Library not loaded: @rpath/Bolts.framework/Versions/A/Bolts
- Privacy manifest required by Apple
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolts-objc.