Best of Both Worlds

What does the idiom “Best of Both Worlds ” mean?

Definition:

Gaining advantages from two different sources

For example:

“With my new schedule I get the best of both worlds—I can keep developing my skills, but I can be home when my daughter gets home from school.”