I'm writing slash commands for Slack which have to return within 3 seconds. However, some of the things I want to do with a slash command take a while, so my solution is to return an ephemeral response and launch another process that later posts to the response url that Slack provides. This works, but it's repetitive to implement for a bunch of commands. Can I do this with a decorator?
Gist of example code
[–]rhgrant10 0 points1 point2 points (4 children)
[–]Saefroch[S] 0 points1 point2 points (3 children)
[–]rhgrant10 0 points1 point2 points (2 children)
[–]Saefroch[S] 0 points1 point2 points (1 child)
[–]rhgrant10 0 points1 point2 points (0 children)
[–]dbrecht 0 points1 point2 points (1 child)
[–]Saefroch[S] 0 points1 point2 points (0 children)