Stopping labor

b • Married & expecting a boy in July💙

At what point (weeks) do doctors not stop labor? Just curious honestly but of course wanting him to stay as long as he needs.