What is the replacement for scene.update()? It seems the following is no longer available in blender 2.8 api

bpy.context.scene.update()


How do we update objects in the scene that have been changed by the script now?
Many instructions point to: 

bpy.context.view_layer.update()


That's also what's mentioned in API documentation