[Pas2js] synchronous...

Michael Van Canneyt michael at freepascal.org
Mon Aug 27 14:41:41 CEST 2018



On Mon, 27 Aug 2018, heliosroots wrote:

> Execute and wait!
> I can use callback and promise, but without an anonymous method it's a
> confusing code. in my opinion.

Anonymous methods are planned. For the moment you can use local methods for this.

Procedure ExecuteSomething;

   Procedure WhenDone;

   begin
   end;

begin
   DoSomeThing(@WhenDone);
end.

Michael.


More information about the Pas2js mailing list