Update data problem

Hello, I want to know if there is any better way to update data. I need to implement an operation now, that is, update once after changing the 3D view. I tried without entering the mode

bpy.msgbus.subscribe_ RNA (key = (bpy. Types. Regionview3d, ‘perspective_matrix’), owner = owner, args = (), notify = perspective matrix,)

But this doesn’t seem to work

bpy.msgbus.subscribe_rna(key=(bpy.types.RegionView3D, ‘perspective_matrix’),owner=owner,args=(),notify=透视矩阵,)