Also hatte ich heute ein interessantes Gespräch über die Synchronität von Volley. Also ich möchte dich fragen ob die Volley HTTP-Anfragen synchron oder asynchron sind. Es geht um die HTTP-Anfragen, nicht um eine AsyncTask.Sind Google Volley HTTP-Anfragen synchron oder asynchron?
0
A
Antwort
2
Vom Standpunkt des Codes, der Volley auffordert, eine Anfrage zu stellen, ist die API asynchron. Sie stellen einen Rückruf bereit, und Sie erhalten die Ergebnisse oder den Fehler asynchron über diesen Rückruf.
Andere HTTP-Client-APIs, wie OkHttp, bieten entweder synchronen oder asynchronen Betrieb.
Verwandte Themen
- 1. lowdb: Abfragen sind synchron oder asynchron?
- 2. Firebase-Datensicherungsmethoden Asynchron oder Synchron
- 3. $ emit $ broadcast synchron oder asynchron?
- 4. Ist Dispatch_apply synchron oder asynchron?
- 5. ist ko.applyBindings synchron oder asynchron?
- 6. Ist Thrust synchron oder asynchron?
- 7. Ist Javamail asynchron oder synchron?
- 8. Laravel Jobabfrage Asynchron/Synchron?
- 9. Werden NSNotificationCenter-Ereignisse synchron oder asynchron empfangen?
- 10. Ist store.dispatch in Redux synchron oder asynchron
- 11. Synchron Anfrage mit Volley Android
- 12. Asynchron und synchron in javaScript
- 13. Synchron asynchron Vs auf iPhone
- 14. Aktion T synchron und asynchron
- 15. Werden boost :: signals Slots synchron oder asynchron aufgerufen?
- 16. Ruft RSSetViewports in Direct3D 11 asynchron oder synchron auf?
- 17. Ist Javascript synchron (blockierend) oder asynchron (nicht blockierend) standardmäßig
- 18. Brennen von COM-Ereignissen in C++ - synchron oder asynchron?
- 19. Funktionsaufruf innerhalb einer $ .each-Schleife, ist es asynchron oder synchron?
- 20. Wie kann ich testen, ob Implementierungen synchron oder asynchron sind, wo dies erforderlich ist?
- 21. Verwirrt über Knoten, um Regeln (synchron/asynchron)
- 22. Sind JavaScript-Listenoperationen synchron?
- 23. Sind MySQL-Trigger asynchron
- 24. Sind Callbacks immer asynchron?
- 25. Google Maps API asynchron
- 26. crypto.pbkdf2 ist asynchron, wie behandle ich es als synchron?
- 27. Laden von Google jsapi asynchron
- 28. Google Maps API Geocode synchron
- 29. Sind Schreiboperationen für PHP-Dateien linear oder asynchron?
- 30. HttpListener, das asynchron verwendet wird, verhält sich synchron
So sind diese Anrufe aus der Box asynchron? Weißt du, ob es eine Quelle von Google oder eine offizielle Seite gibt, wo sie es erzählen? –
@LukasS: "Diese Aufrufe sind also asynchron?" -- Ja. "Weißt du, ob es eine Quelle von Google oder eine offizielle Seite gibt, auf der sie es erzählen?" - Es ist offensichtlich von der API. Sie sind sicherlich willkommen, [die Volley-Dokumentation] (https://developer.android.com/training/volley/index.html) und [den Quellcode der Volley] zu lesen (https://android.googlesource.com/platform/ Rahmen/Volley). – CommonsWare
Ah okay, vielen Dank :) Dies waren die Antworten, nach denen ich gesucht habe. –