Is there a technical reason to pass state via a pass-thru callback argument, or capture it via a closure?

后端 未结 0 498
生来不讨喜
生来不讨喜 2021-01-20 03:02

While reviewing code last night I found this code. Of note, state is captured via the lambda which executes the call-back action.

public static v         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题