split aperture_example into blocking and async examples