You should wait 45 minutes before going back into the pool. Although 45 minutes may seem like a long time, doing physical excercice right after eating usually result in cramping. If you start cramping while your swimming you can drowning.
Hope this helps! :)