wait for until duration has elapsed.
duration
same as after but return () to make it compatible as previous
after