Here is what I did:
extends OkHttpDownloader
getClient().interceptors().add(new Interceptor() {...}
I launched the Android application in debug mode, I noticed that there are two threads, each of which is called "Picasso -....". When I try to access an image from the Internet, each of these threads calls public Response intercept(Chain chain)my interceptor method , which means that the same request is being processed by a stream of more than one at a time. What is the reason for this?
public Response intercept(Chain chain)
, - , , . . , :
picasso.setIndicatorsEnabled(true); / picasso.setLoggingEnabled(true);
picasso.setIndicatorsEnabled(true);
picasso.setLoggingEnabled(true);
( , ?). - . , . , , . , , ?
Source: https://habr.com/ru/post/1626247/More articles:Spring JPA Query returns Null instead of list - javaHow long messages will be stored in the topic / section using kafka 0.9 - javaHow to delete multiple entries using Laravel Eloquent - phpHow do I map a quadratic surface to some points in Python? - pythonReact + d3js: use React and parts of d3 or let d3 do it yourself - javascriptjQuery not working in iOS? - jqueryGetting all field names from protocol buffer in C ++? - c ++IIS redirect with cache response header - redirectКак принять массив выходных параметров и скаляр в perl? - perlИзменена ли конфигурация соединения StackExchange Redis? - stackexchange.redisAll Articles