Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Issue when await finishes quickly. #60

Closed
yalva opened this issue May 19, 2020 · 1 comment
Closed

Issue when await finishes quickly. #60

yalva opened this issue May 19, 2020 · 1 comment

Comments

@yalva
Copy link

yalva commented May 19, 2020

Its not working when trying to hide it in less than a second, whenComplete gets executed, but progress continues to show

I'm making Dio async call after pr.show(), when network failure Dio returns immediately, at this point pr.hide().whenComplete() is getting executed but progress dialog getting shown

@fayaz07
Copy link
Owner

fayaz07 commented May 22, 2020

use await pr.show()

@fayaz07 fayaz07 closed this as completed May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants