Something that might happen while thinking is epiphany.