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
Using the latest Swift's practices for Concurrency will make the code that is using the Swift-Algorand-SDK a lot more readable. The idea would be to create a wrapper on top of the current methods that use the async await syntax instead of competition handlers.
A sample example implementation of some of the most common methods:
Hi @Vilijan this seems like a reasonable request and I can definetly take a look at it, but I'm a little bit concerned about the supported min iOS version (currently targeting iOS 10.0 with cocoapods) while Swift Concurrency is only available starting from iOS 13.0.
I think there's a workaround using #if canImport but i just want to make sure this doesn't introduce any breaking change to other users.
what do you think? Can you give it a shot in your project?
Also I'd agree with you in having functions throwing errors, but doing that would require us to review all current method signatures introducing lots of breaking changes and I honestly don't know if it's worth it
Using the latest Swift's practices for Concurrency will make the code that is using the Swift-Algorand-SDK a lot more readable. The idea would be to create a wrapper on top of the current methods that use the
async await
syntax instead of competition handlers.A sample example implementation of some of the most common methods:
Then we can use those methods, which makes the code a lot more readable.
Sample of creating new asset:
The text was updated successfully, but these errors were encountered: