Skip to content
Commit c25a0f01 authored by Rohit Kaushik's avatar Rohit Kaushik Committed by Georges Basile Stavracas Neto
Browse files

todoist: Implement queueing of post requests

This patch implements queuing of requests and disptaching it
properly to avoid conflicts and time limits. It adds:

1) dispatch_requests - dispatches the first request from queue.
   If there are more request they are dispatched in post callback.

2) push_post_request - When user changes any todoist task/lists,
   this push the request to queue and also adds a timeout of 5
   seconds for dispatching the requests.

A queue is added to provider class which holds post requests.
With this patch, the problem of reaching a limit is fixed since
on error the request is not removed from queue and hence is not
lost.

https://bugzilla.gnome.org/show_bug.cgi?id=772278
parent 17c08d05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment