{"action":"closed","issue":{"url":"https://api.github.com/repos/VividCortex/siesta/issues/53","labels_url":"https://api.github.com/repos/VividCortex/siesta/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/VividCortex/siesta/issues/53/comments","events_url":"https://api.github.com/repos/VividCortex/siesta/issues/53/events","html_url":"https://github.com/VividCortex/siesta/issues/53","id":112450934,"number":53,"title":"Run function after quit","user":{"login":"tutunci","id":400177,"avatar_url":"https://avatars.githubusercontent.com/u/400177?v=3","gravatar_id":"","url":"https://api.github.com/users/tutunci","html_url":"https://github.com/tutunci","followers_url":"https://api.github.com/users/tutunci/followers","following_url":"https://api.github.com/users/tutunci/following{/other_user}","gists_url":"https://api.github.com/users/tutunci/gists{/gist_id}","starred_url":"https://api.github.com/users/tutunci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutunci/subscriptions","organizations_url":"https://api.github.com/users/tutunci/orgs","repos_url":"https://api.github.com/users/tutunci/repos","events_url":"https://api.github.com/users/tutunci/events{/privacy}","received_events_url":"https://api.github.com/users/tutunci/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-20T20:14:00Z","updated_at":"2015-10-21T19:08:31Z","closed_at":"2015-10-21T19:08:31Z","body":"Hi,\r\nI'm trying to find a way to run a function after sending result.\r\nLet's suppose that I've to send the 200 OK quite fast but than continue processing data and doing insert on a slow service.\r\nI've added my AddPost at the end of the list but:\r\nif I set function without the quit (and it's in the previous one) function is never run\r\nif I set function as quit it runs but output is at the end of all.\r\n\r\nCan you please suggest a solution\r\n\r\nThanks\r\nMaurizio"}}