Please sign in to comment.
Add tracking for AJAX requests in LiftSession.
Request info consists of three things: - The request version. - A future for the response to the request, satisfied by the first request for this version when the response is ready. - A lastSeen timestamp, used to expire the entry after the usual function lifespan. LiftSession.withAjaxRequests exposes the request list, which is a Map mapping a page version to the list of AjaxRequestInfos currently being tracked for that page. AjaxRequestInfos are cleaned up according to their lastSeen timestamp, which is updated the same way as those of functions on the page.
- Loading branch information...
Showing with 47 additions and 0 deletions.