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
Is your feature request related to a problem? Please describe.
The current Swift API is lacking support for async / await. While developers can naively wrap the existing methods with continuations ignoring cancellation, native support for async / await with support for cancellation would be preferred.
Describe the solution you'd like
Key APIs that currently include completion handlers also offer an async await extension
Is your feature request related to a problem? Please describe.
The current Swift API is lacking support for async / await. While developers can naively wrap the existing methods with continuations ignoring cancellation, native support for async / await with support for cancellation would be preferred.
Describe the solution you'd like
Key APIs that currently include completion handlers also offer an async await extension
Describe alternatives you've considered
I currently write these extension myself but there are a few issues due to limitations within the public API:
start()
can call its completion handler multiple times if timeout expires before it becomes online.start()
,setOnline()
&identifiy()
have no API to cancel causing completion handler to receive failure. e.g.URLSessionTask.cancel()
The workarounds for these issues are non trivial.
The text was updated successfully, but these errors were encountered: