Skip to content
marcesher edited this page Apr 11, 2012 · 3 revisions

Impatient, eh?

I know how it is. If you don't want to dig through docs to see this thing in action -- if you're the type of person who likes to run the thing and look at the code and figure it out -- fear not.

Download CFConcurrent, put it in your webroot, and load index.cfm

Click on the "Executor service" link in the menu and ensure you get no errors.

Click the "submit tasks" link on that page.

Now, open examples/ExecutorService/Application.cfc to see how the Service is constructed.

Then, open examples/ExecutorService/submit.cfm to see how tasks are constructed and submitted. All of the important code is at the top of the page, showing you how to use submit() and invokeAll() for submitting tasks to an ExecutorService for concurrent execution and results retrieval.

After you grok that, check out the CompletionService and ScheduledExecutorService examples in the menu on the left.