Get yourself close... and stop... wait awhile, then start again... repeat as long as you want... the more you edge, the longer you can go... do that often enough, and it's possible to get to where you can ride the edge (without cumming) for long lengths of time (both with masterbation and during sex).