KoCMoHaBTa / MHIdentityKit

OAuth2 and OpenID connect Protocol Oriented Swift client library for iOS, watchOS, tvOS and macOS
MIT License
2 stars 6 forks source link

MHIdentityKit parallel executions #5

Open mynkow opened 2 years ago

mynkow commented 2 years ago

We are going to do some upgrade. Here is our plan. Let us know if you have any high level suggestions or guidelines.

We need to update MHIdentityKit for iOS to use latest async/parallel tasks executions.

Why do we need that?

This will allow us to execute parallel requests

We will be able to cancel already started requests

Will ease and make more clean coding API requests.

Business Requirements

Update MHIdentityKit for iOS to use latest async/parallel tasks executions. 

IMPORTANT: We need to maintain backward compatibility with the previous MHIdentityKit versions.
KoCMoHaBTa commented 2 years ago

You should be able to add protocol extensions with concurrency (async/await) implementation using continuations that wrap every existing concurrent method. This way, the changes will be just additive and will not break existing clients nor will change any existing logic.