Isn't this just type 2 (slow) thinking? The "grit" required to focus on complex tasks is the same brain function as ability to suffer for long periods during exercise, problem solving, etc. Many books and science cover this subject, I can think of two, "Thinking, Fast and Slow" and "Iron War".