You have 30 seconds to run, then it will start chasing and growing... or stay and watch it grow as you dodge Wither Skulls. Just... don't touch it whilst it's spawning (you won't be able to escape)
Credits to @AzreeLestat for making the Wither Skull Projectiles as well as the code for you being able to move away from the Wither.