Rename thenApply function to then

Keep alias to `then` as `thenApply`.