Closed imjoehaines closed 5 months ago
This PR adds a RequestTracker class that can be used to (surprise surprise) track requests:
RequestTracker
request_tracker = RequestTracker() mark_request_complete = request_tracker.new_request() request_tracker.has_in_flight_requests() # => True # ...make the request... mark_request_complete() request_tracker.has_in_flight_requests() # => False
The Client and SessionTracker use this, along with post-delivery callbacks (#375), to keep track of when there are in-flight event or session requests
Client
SessionTracker
Goal
This PR adds a
RequestTracker
class that can be used to (surprise surprise) track requests:The
Client
andSessionTracker
use this, along with post-delivery callbacks (#375), to keep track of when there are in-flight event or session requests