You can choose a cancellation period of five, 10, 20 or 30 seconds.
Instead, it has a function you can enable that allows you to 'unsend' a message within a certain amount of time. Gmail doesn't have a traditional 'recall' function like Outlook. But by making a few simple tweaks to Gmail or Outlook you can greatly reduce the chances of future email slip-ups ruining your life.
It's probably too late to do anything about that email. It's late, you're tired and you accidentally just emailed an angry rant about your boss to her, instead of to the co-worker it was intended for.