AwaitKit
AwaitKit copied to clipboard
AwaitKit and UIKit
is there a way to mix an async {} block of code with UI actions that has promises? something like PMKAlertController.
I have also developed other ViewControllers that waits for an user action and when said VC is dismissed it fulfill/reject a promise. Can AwaitKit wait for that promise to fulfill, but don't block the main UI, nor glitch the drawing of the UI when is getting presented because is in a background thread?
I have also developed other ViewControllers that waits for an user action and
when said VC is dismissed it fulfill/reject a promise.
can you show me or point to some code example that describes what you explain.
thanks