after adding bleach how long do you need to let your filter run?

Is it safe to swim after adding bleach? How long do you have to wait?
Thanks