Friends after breakup?

Have any of you been able to maintain a friendship after the breakup? If so, how long did it take until you could be friends? I feel like it takes a while for feelings to dissipate, if they ever do, so how can you navigate a friendship after the breakup?