-
Notifications
You must be signed in to change notification settings - Fork 9
Omg i cannot wait
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.