CocinAsync Primer

What is CocinAsync?

You can find the library as a git repo on bitbucket here:

https://bitbucket.org/sivv/cocinasync/src/develop/

It’s a high performance asynchronous programming library for Delphi.

It was created to address many shortcomings or perceived missing features in the Delphi built in threading and async primitives.

My personal favorite helper method is a Synchronize-if-not-in-main-thread helper.

uses
  CocinAsync.Async;

...

TAsync.SynchronizeIfInThread(      
   procedure 
   begin  
           Thing1;
           Thing2;
   end;
);

Comment with your own notes on interesting things in here.

Thanks for sharing. I hope to post more about individual features like this but if you beat me too it, even better. :slight_smile: