aop icon indicating copy to clipboard operation
aop copied to clipboard

AfterReturning is only for panic?

Open xiaoqin16 opened this issue 4 years ago • 1 comments

callAdvicesFunc(AfterReturning, retValues...) will panic and be recover, so the program can execute successfully. If don't panic, the program will return retValues which is nil.

xiaoqin16 avatar Aug 20 '21 12:08 xiaoqin16

can you give me a example code ?

xujinzheng avatar Aug 22 '21 11:08 xujinzheng