Finish it, or write the next step. Then switch all the way.

Part of your attention stays on an unfinished task when you switch, and it makes you worse at the next one. Before switching, finish the piece, or write "next step: ___" on it. Batch messages at set times.
P Evidence: promising. Good studies, but small or few. Use it and keep checking.
Leroy 2009 (two experiments and a follow-up).
Not medical, legal or financial advice.
In The Ecosystem every framework comes with a daily action, a room that checks in, and the full library.