One riding technique that works well in many cases is to take the lane but then move to the right as traffic approaches from the rear. This forces approaching drivers to see you and start moving left, but gives them plenty of passing space. Works best if you also use a mirror.