Certain birds are said to sleep in mid-flight. They do so in short ten-second bursts, usually after nightfall. The bird is able to switch off one side of its brain in order to rest, while the other side continues its rhythmic vigilance to avoid crashing into a fellow flier and to watch out for predators.