单项选择题

John waited at the bus-stop for nearly half an hour ______ the bus finally arrived.

A.when
B.as
C.before
D.while