-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(client/android): move fetching logic from TypeScript to Go #2221
Conversation
f9bf4d8
to
b033c7b
Compare
} else if (Action.FETCH_RESOURCE.is(action)) { | ||
final String url = args.getString(0); | ||
LOG.fine(String.format(Locale.ROOT, "Fetching resource at %s ...", url)); | ||
final FetchResourceResult result = Outline.fetchResource(url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will block. Is that a problem? I'm afraid this will freeze the UI, especially bad on timeouts.
We may need a callback mechanism instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, we both missed Line 192, 😄. All these calls are already executed in the default threadpool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the PR not blocked on approval???
Cuz it's not being merged into |
6a0b588
to
96a64e9
Compare
New Fetch Error
Prerequisite: #2220