Delphi, Tokyo, latest release - 1.
Can we use anonymous methods on the AsyncEx calls generated on the Intf files?
A normal declaration will look something like:
aCallbackMethod is declared on RO as TROAsyncCallBack = procedure (const aRequest: IROAsyncRequest)
If it is possible, how do you do it? I might be trying it all wrong.
It is my understanding that in order for it to happen TROAsyncCallBack has to be declared as
TROAsyncCallBack = reference to procedure(const aRequest:IROAsyncRequest)
So we can do something like
If it is not supported, it is a nice and simple thing to add and keep things modern.